On 03/04/2011 10:41 AM, Magnus Lie Hetland wrote:
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 :)
It can be seen on the D1 documentation: http://www.digitalmars.com/d/1.0/operatoroverloading.html That is (or "will be") deprecated in D2. Ali
