Proposal: user defined attributes

F i L witte2008 at gmail.com
Mon Mar 19 14:06:55 PDT 2012


On Monday, 19 March 2012 at 21:00:32 UTC, Andrei Alexandrescu 
wrote:
> On 3/19/12 3:55 PM, F i L wrote:
>> I think this could get tricky for the compiler to confidently 
>> use given
>> that the mixed in enums can collide with existing members 
>> (although not
>> likely). Also, if objects are not identified as being unique 
>> marked (in
>> the compilers eyes), what specific attribute post-fixes will 
>> it be
>> searching for on enums members?
>
> Not a big issue, the name could always contain a uuid which 
> makes collision practically impossibile.
>
> Andrei

So the compiler would always search for enums with a specific 
"xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx" signature? Guess that 
could work.


More information about the Digitalmars-d mailing list