About the in expression, Why can't use with array.
Paul Backus
snarwin at gmail.com
Fri Oct 25 16:51:58 UTC 2019
On Friday, 25 October 2019 at 16:01:57 UTC, mipri wrote:
> On Friday, 25 October 2019 at 15:52:50 UTC, Paul Backus wrote:
>> On Friday, 25 October 2019 at 09:25:21 UTC, Dennis wrote:
>>> I can overload the 'in' operator on my types to something
>>> that takes exponential time if I want, just like "+" can also
>>> be overloaded to a linear time operation on e.g. BigInt.
>>
>> Worth noting that `opIn` is a D1 operator overload, and thus
>> deprecated as of 2.088.0.
>
> That wasn't mentioned though? Does it reverse the arguments so
> that the writeln() examples below can be more naturally ordered?
I made a mistake reading the language spec and missed `in` in the
list of operators covered by opBinary. Please disregard!
More information about the Digitalmars-d-learn
mailing list