Keywords: How to trick the compiler?

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Jan 28 04:56:29 PST 2014


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.


More information about the Digitalmars-d-learn mailing list