Am 02.04.2011, 10:11 Uhr, schrieb Rainer Schuetze <r.sagita...@gmx.de>:
Do we want to allow spaces and comments between these tokens?
- extern ( C ++ )
Well we would have to introduce C++ as a keyword just for that purpose.
Not worth it.
- @ Property (safe, trusted, disable, etc)
safe, trusted etc. aren't keywords.
dmd handles it as ('@' identifier) and that's exactly what the grammar
should be to support user-defined attributes in the future.
extern(C
//
++) void foo();
@ /* comment inside
property */ safe int bar() { return 0; }
Would someone really do bullshit like that?