; not required after pragma

Tomek Sowiński just at ask.me
Sun Oct 10 11:13:25 PDT 2010


Simen kjaeraas napisał:

> Tomek Sowiński <just at ask.me> wrote:
> 
>> pragma(msg, "blabla")
>>
>> bug or feature?
> 
> Feature. http://www.digitalmars.com/d/2.0/pragma.html:
> 
> "Pragmas can be used by themselves terminated with a ';', they can
> influence a statement, a block of statements, a declaration, or a block
> of declarations."
> 
> E.g. pragma( blah, blablableh ) struct foo {}; might mean something,
> and in this case the pragma would modify foo.

Heh, should've DAFS, thanks.
It's still baffling a bit - what can pragma(msg) possibly influence? Perhaps there should be a 
division - influencing vs. statement flavor. The compiler could disallow usage not lying in a 
particular pragma's nature.

-- 
Tomek


More information about the Digitalmars-d mailing list