Semi Automated Object wrapping

bearophile bearophileHUGS at lycos.com
Thu Aug 13 11:50:43 PDT 2009


Bill Baxter:
>     ret ~= "\t$ReturnType!(t).stringof splitFuncs(methodstr)[i]("
> It would at least look a bit nicer than
>      ret ~= "\t"~ReturnType!(t).stringof ~" "~splitFuncs(methodstr)[i]~"(";
> with all the ~" "~ everywhere.

Currently you can do (I think it doesn't work well in D2 now):
import std.metastrings: Format;
...
ret ~= Format!("\t %s %s(", ReturnType!(t).stringof, splitFuncs(methodstr)[i]);

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list