January 28, 2014 mixin.stringof | ||||
---|---|---|---|---|
| ||||
I propose that stringof be allowed on mixins so that they return, as a string, the "output of the mixin" (if it is a string mixin then it just returns the string of the mixin) This will make using mixins much easier for intellisense and debugging purposes. e.g., template A!(B) { class C : B { } } mixin A!(Q); // inserts the class C : Q enum e = mixin.stringof A!(Q); // returns as a string "class C : Q { }" Obviously there may be better ways but anything is better than nothing. |
Copyright © 1999-2021 by the D Language Foundation