Mixins: Using the type name to generate a method name

Mantis mail.mantis.88 at gmail.com
Tue Feb 21 11:50:19 PST 2012


21.02.2012 21:42, Robert Rouse пишет:
> ...
>     mixin("alias _method " ~ toLower(typeid(T)) ~ ";" );
> ...
>
Try
typeid(T).toString();
or
typeof(T).stringof;

typeid does not return a string type.


More information about the Digitalmars-d-learn mailing list