format()

David Nadlinger see at klickverbot.at
Sun Jun 12 10:30:05 PDT 2011


On 6/12/11 6:37 PM, Lloyd Dupont wrote:
> mm... ok.
> but why the line below doesn't compile?
>
> mixin(format("class %s {}", "A"));

Because format presumably can't be interpreted at compile time (yet) – 
not all functions are necessarily CTFEable.

David


More information about the Digitalmars-d-learn mailing list