Templates in classes => what is wrong?
Ali Çehreli
acehreli at yahoo.com
Tue Apr 17 08:30:36 PDT 2012
On 04/17/2012 08:17 AM, Xan wrote:
> Off-topic, could can I define toString having this structure:
>
> <Name of the function> (versió <version number>): <Domain> -> <Range>,
> <code of the function>
>
> ?
>
> (For example, in https://gist.github.com/2394274 I want that Doblar
> displays as:
> Doblar (versió 1): int -> int, { return 2 * a; }
>
>
> Thanks a lot,
> Xan.
std.string.format is easy:
format("%s%s", 42, "hello");
Ali
More information about the Digitalmars-d-learn
mailing list