; not required after pragma

Simen kjaeraas simen.kjaras at gmail.com
Sun Oct 10 10:16:02 PDT 2010


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.

-- 
Simen


More information about the Digitalmars-d mailing list