Pointers vs. References
Myron Alexander
someone at somewhere.com
Wed Jun 13 19:43:20 PDT 2007
Bill Baxter wrote:
>
> x == y ===> (x is y || x.opEquals(y))
>
I prefer that the compiler does not rewrite my code.
There is nothing wrong with the current syntax, it's just different from
what most people here are used to. If Walter changed '==' to be a
reference check, then it would mean '==' works differently for different
types. That inconsistency would kick up a hurricane - precisely what
happened in Java.
D does get this one right but a warning would be nice.
Regards,
Myron.
More information about the Digitalmars-d
mailing list