Proposal: user defined attributes

F i L witte2008 at gmail.com
Sun Mar 18 05:10:23 PDT 2012


Tove wrote:
> Hmm... well if the x declarations store all NoScan objects in a 
> collection, it could be injected into the constructor token 
> stream later...
>
> x!("@GC.NoScan int value;");
>
> // modified by x to insert a foreach with GC.setAttr
> x!(q{this() {/* foreach(...) GC.setAttr(...); */ });

But if x!() pumps out a constructor, how do you add multiple 
attributes with @GC.NoScan? The constructors would collide.




More information about the Digitalmars-d mailing list