defining "in" What is the proper way in D2?

David Nadlinger see at klickverbot.at
Sun Sep 11 13:33:15 PDT 2011


On 9/11/11 10:25 PM, Vladimir Panteleev wrote:
> void opBinary!("in")(Key k)

Shouldn't that be »void opBinary(string op : "in")(Key k)«? Also, you 
probably want to use opBinaryRight, because opBinary hooks »if 
(container in key)«.

David


More information about the Digitalmars-d-learn mailing list