Simen kjaeraas napisał: > Tomek Sowiński <[email protected]> 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
