==, is
Ellery Newcomer
ellery-newcomer at utulsa.edu
Mon Nov 15 12:40:43 PST 2010
a while ago, I assumed that
e1 += e2
gets rewritten as
e1 = e1 + e2
Yeah. It doesn't. It doesn't even behave the same wrt erroneously typed
arguments
On 11/15/2010 02:35 PM, Jonathan M Davis wrote:
>> As far as is, it doesn't explicitly say that rewriting is done, but, it
>> does spell out that to do the opposite, use !is. Maybe the spec should be
>> updated to explicitly say x !is y is the same as !(x is y).
>
> Honestly, I don't see how it could be otherwise. I would have just assumed that
> they were identical.
>
> - Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list