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.