Overriding "in" operator
Magnus Lie Hetland
magnus at hetland.org
Fri Mar 4 10:41:34 PST 2011
On 2011-03-04 18:08:08 +0100, spir said:
> Didn't even know 'in' can be defined with opBinary...
> I use opIn_r ('r' for right side, since the container stand on the
> right of the expression) everywhere, and it works fine.
Huh. Cool. Works like a charm. Seems cleaner like the opBinaryRight
solution, really. I just didn't know of it :)
--
Magnus Lie Hetland
http://hetland.org
More information about the Digitalmars-d-learn
mailing list