Re: value dispatch on enums?

Arjan Boeijink <[email protected]> Mon, 05 Jul 2004 10:29:37 +0200
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
>I think static dispatch is getting confused about values versus
>variables when binding arguments within the body of a method:
>
>The code:
>
>    enum Signal { High, Low, X }
>    Signal `&`(Signal, Signal);
>    `&`(High, x)    = x;
>    `&`(X, x)       = X;
>    `&`(Low, Low)   = Low;
>    `&`(Low, z)     = z & Low;
>
>The error:
>
>    ~/nice/src/com/megacz/test/Test.nice: line 8, column 19:
>    Ambiguity for symbol Low. Possibilities are :
>    com.megacz.test.Signal(Low) Low
>    com.megacz.test.Signal(Low) Low
Thanks for the bug report.
This has been fixed in cvs.

ps: your previous mail has been moved to Nice-info

Arjan



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com