Jump to content

Talk:Compiler directive

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

"The #pragma once construct in some implementations of C serves a purpose similar to that of #include guards." what does 'guards' mean in this sentence?


  • ahem* Pragma also links from the Love article..... being a style of love

suggest that a second definition is included.


I changed the inlinks from Pragma to Pragma (love). (pragma redirects here to Compiler directive). RJFJR 04:58, Mar 4, 2005 (UTC)

HTML

[edit]

"In HTML a compiler directive can be used to denote whether a page should be cached or not."

This may be inaccurate. HTML does not compile. The directive is enclosed in a meta tag. Opinions? --Avochelm 12:27, 9 August 2005 (UTC)[reply]

Personally I feel that whatever merge I assume happened at some point between "Compiler directive" and "pragma" was premature. HTML does in fact have pragmas, which of course have nothing to do with compilation... seems like pragma is more generally a term used for optional hinting of some kind, often non-portable or implementation-dependent. Also, a google for 'pragma' suggests that not only C and ADA call it that (modula 3, for example, seems to have a keyword 'pragma'.) Also also, I've never heard the term 'significant comment' before... certainly some lanaguages (QBASIC comes to mind off the top of my head) implement something like pragmas with specially-formed comments, but i've never heard that used as a general term before. Glenn Willen (Talk) 05:47, 13 August 2005 (UTC)[reply]

Yeah, looks like a premature move. C doesn't call them "pragmas" — just "directives" — although a lot of implementations do provide a directive named #pragma. As for "significant comments," I've never heard that term used, but Turbo Pascal uses {$I foo} and other such dollar-sign-prefixed comments for the same things other languages use compiler directives for, so it's not uncommon. --Quuxplusone 03:53, 27 August 2005 (UTC)[reply]

Pragma compiler preprocessor directive

[edit]

The current setup is a bit of a mess. The 3 articles need to be reorged. Mathiastck 20:18, 16 August 2006 (UTC)[reply]