Keywords: How to trick the compiler?

Piotrek a at b.c
Tue Jan 28 14:19:33 PST 2014


On Tuesday, 28 January 2014 at 12:57:02 UTC, Andrej Mitrovic 
wrote:
> On 1/28/14, Chris <wendlec at tcd.ie> wrote:
>> Is there a simple way to trick the compiler (e.g. with alias), 
>> if
>> a keyword conflicts with a function/method, e.g. as in a HTML
>> document:
>>
>> auto docBody = document.body;
>
> "body" is probably the most frequent issue I run into when 
> porting
> C/C++ code to D.
>
> I really wonder whether the rule could be relaxed a little bit.

http://d.puremagic.com/issues/show_bug.cgi?id=5775

Actually I'm still wainting for body release ;)


More information about the Digitalmars-d-learn mailing list