"is" operator for structures?

Don Clugston dac at nospam.com
Wed May 9 08:29:39 PDT 2012


On 09/05/12 16:13, bearophile wrote:
> Gor Gyolchanyan:
>
>> Because the opBinary [...]
>
> Thank for your answer, but I don't carte of "why" the D compiler accepts
> that. I only care about the D compiler statically refusing that.
>
> Bye,
> bearophile

I think you're asking for opBinary to be a keyword.
If it were statically rejected, surely you'll also want to have:

void opBinary(string xx, int x) {}

rejected as well. Along with a multitude of other things.


More information about the Digitalmars-d mailing list