Templates in classes => what is wrong?

Xan xancorreu at gmail.com
Tue Apr 17 08:17:46 PDT 2012


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.


More information about the Digitalmars-d-learn mailing list