Keywords: How to trick the compiler?
Stanislav Blinov
stanislav.blinov at gmail.com
Tue Jan 28 14:50:25 PST 2014
On Tuesday, 28 January 2014 at 22:35:31 UTC, Martin Cejp wrote:
>>> I really wonder whether the rule could be relaxed a little
>>> bit.
>>
>> o_O How?
>
> Not being a keyword except in places where it is used as such.
Only if it's not a keyword at all, lest you complicate parsing.
You wouldn't want any other keyword (I dunno, int?) get a special
treatment now, would you?
Don't get me wrong, I'm all for allowing to use "body" as an
identifier in user code, I just don't see any half-measures in
that regard :)
More information about the Digitalmars-d-learn
mailing list