UDA + Pegged AST Hack

Daniel N ufo at orbiting.us
Thu Nov 29 02:42:44 PST 2012


On Thursday, 29 November 2012 at 09:56:29 UTC, Max Samukha wrote:
> On Thursday, 29 November 2012 at 07:37:31 UTC, Jacob Carlborg 
> wrote:
>> On 2012-11-29 01:16, deadalnix wrote:
>>
>>> Can someone remember me why this ended up in master ? This 
>>> feature is
>>> clearly not ready.
>>
>> Because that's what Walter do, committing new features to the 
>> master branch willy nilly.
>
> I want to remind you that there is still no consensus about 
> whether unconstrained attributes are good or bad.

Furthermore I intentionally used __LINE__ (int), as an 
optimization, among other things; it results in reduced memory 
consumption during CTFE.

In my case I only intend to use the magic type inside the same 
source file to generate another type(magic2) which I then will 
expose externally, thus it's perfectly safe. Magic will be 
discarded and never escape, nor be used for anything.



More information about the Digitalmars-d mailing list