"is" operator for structures?

bearophile bearophileHUGS at lycos.com
Wed May 9 06:46:43 PDT 2012


Gor Gyolchanyan:

> My question is, why not allow is operator to be overloadable 
> for structures?

Or why the bad D compiler doesn't statically refuse the code like:

>     bool opBinary(string op : "is")(typeof(null))

Bye,
bearophile



More information about the Digitalmars-d mailing list