Comparing Multiple Values
BCS
ao at pathlink.com
Tue Mar 11 13:17:18 PDT 2008
Reply to Downs,
> Bill Baxter wrote:
>
>> downs wrote:
>>
>>>
>>> `in` already is an infix operator :)
>>>
>>> --downs
>>>
>> Yes, but it doesn't work!
>>
>> --bb
>>
> Curious.
>
> Works here, GDC 1.028 / 4.1.2
>
> What are you using?
>
> --downs
>
I think he was saying the "in" operator dosn't work / works wrong. As in
(a in [0:0, 1:2, 2:4, 3:6]) == (0<= a <=4) rather than (a==0 || a==2 ||
a==4 || a==6).
More information about the Digitalmars-d-learn
mailing list