Where is pragma Declaration in the grammar?
Stefan Koch
uplink.coder at googlemail.com
Sat Dec 5 00:57:04 UTC 2020
Hi,
today I've been dusting my SDC fork and implemented a rudimentary
version of pragma(msg).
I could pragmaStatement
as in void f()
{
pragma(msg, typeof(f));
}
but not a declaration as in
pragma(msg, typeof(f))
without a function body.
there is a StaticAssert is in the grammar under declaration,
pragma is not.
Maybe it's stated differently?
Any help is appreciated.
Cheers,
Stefan
More information about the Digitalmars-d-learn
mailing list