D grammar overhaul

Trass3r un at known.com
Thu Apr 7 09:43:27 PDT 2011


Am 02.04.2011, 10:11 Uhr, schrieb Rainer Schuetze <r.sagitario at 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?


More information about the Digitalmars-d mailing list