Proposal: user defined attributes

CTFE-4-the-win CTFE at 4the.win
Thu Mar 22 03:43:35 PDT 2012


On Thursday, 22 March 2012 at 10:18:24 UTC, Andrej Mitrovic wrote:
> On 3/21/12, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> 
> wrote:
>> I think the liability here is that b needs to appear in two 
>> places.
>
> Andrei, how about this:
>
> Note that I've had to make a constructor because I can't 
> implicitly
> assign a string to a NonSerialized!string inside of a struct 
> literal
> (but I think this is just a DMD frontend bug).

Now, this is pure beauty. :)


More information about the Digitalmars-d mailing list