mixin.stringof

Frustrated c1514843 at drdrb.com
Tue Jan 28 09:36:01 PST 2014


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.


More information about the Digitalmars-d mailing list