Overriding to!string on enum types
evilrat via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 2 09:04:53 PDT 2014
On Tuesday, 2 September 2014 at 15:42:36 UTC, monarch_dodra wrote:
>
> Word of warning: You are not overriding "to", but rather,
> simply defining your own "to" locally, which resolves as a
> better match in the context where you are using it.
>
> If you pass the enum to another function in another module,
> your "to" will NOT be called.
i know. and because of that this template in same scope as enum
More information about the Digitalmars-d-learn
mailing list