D parsing

Timon Gehr timon.gehr at gmx.ch
Sun Nov 10 15:21:08 PST 2013


On 11/10/2013 11:43 PM, Andrei Alexandrescu wrote:
>>
>> It seems we could even get rid of __FILE__,__LINE__,__MODULE__ with AST
>> macros.
>
> This would be a very small advantage. The special variables hardly cause
> any trouble.
>
> Andrei

The trouble is that there are too few of them to (efficiently) reflect 
all the information about the calling context one may be interested in. 
I don't see the point in adding them one after another in an 
unprincipled ad-hoc fashion instead of actually thinking up a good API 
coupled with some more expressive power.


More information about the Digitalmars-d mailing list