Rosetta Code:Village Pump/Works with against libheader: Difference between revisions

my opinion
(Explanation of difference)
(my opinion)
Line 4:
 
The libheader template actually puts the task in the library's category. The works with template just marks which compiler, interpreter, language version, or implementation the code works under. So the libheader should be used for libraries so that the library categories are updated and the works with template should be used for everything else. --[[User:Mwn3d|Mwn3d]] 15:47, 12 February 2009 (UTC)
 
:Right. {Works with} is used to describe your test environment, such as which compiler, compiler version, operating system, or language variant is required to run the example. {Libheader} is used to describe optional libraries that are required to run the example. Objective-C class libraries are kind of on the fuzzy line between the two templates. To some extent, the whole point of Objective-C was to define an object system in which a standard class library could be written, and OpenStep/Cocoa is that class library. I don't think anyone uses Objective-C without the class library and most of its core classes are the same between the different implementations, so it is probably fine to use {works with|OpenStep} and consider it a standard library. Also I don't think there are any other compilers other than [[gcc]]. --[[User:IanOsgood|IanOsgood]] 17:09, 12 February 2009 (UTC)
Anonymous user