enum overloading

Robert Clipsham robert at octarineparrot.com
Sat May 22 11:32:00 PDT 2010


On 22/05/10 18:46, strtr wrote:
> I wanted to overload toString for my enums.
>
> test.d(189): Error: toString (ENUM) does not match parameter types (int)
>
> not possible?
----
enum ENUM
{
         a, b, c
}
void toString(ENUM) { }
----
It works here. Could you show an example of some code that isn't working?


More information about the Digitalmars-d-learn mailing list