User Defined Attributes

Tove tove at fransson.se
Tue Nov 6 02:10:36 PST 2012


Tooo much fun! Argh, _must_ _stop_ _playing_ and actually work ;(

["int a;"]
class A
{
}

class B : A
{
   mixin(__traits(getAttributes, typeof(super))[0]);
}

can't wait to see all the creative uses this will enable!



More information about the Digitalmars-d-announce mailing list