[RFC] ColorD

Philippe Sigaud philippe.sigaud at gmail.com
Tue Oct 23 12:56:26 PDT 2012


>> writefln("The %c(red,white)(widgetometer%) is a device formeasuring"); //
>> for writing red on white

Would something like the following be possible?

// col is a string-accepting function that returns a correctly formatted string
// red and white are from a general Color enum
alias col!(Color.red, Color.white) rw;

writeln("The ", rw("widgetometer"), " is a device for measuring...");


More information about the Digitalmars-d mailing list