Conditional ? bug

Tydr Schnubbis fake at address.dude
Fri Oct 6 04:54:36 PDT 2006


Tydr Schnubbis wrote:
> So you have to use "test != null ? test.foo() : 0" for that kind of 
> thing.  Just "test ? test.foo() : 0" works too.

Oops, I meant "test !is null ? test.foo() : 0".  "is" and "!is" compares 
the references, it doesn't turn into a call to opEquals.



More information about the Digitalmars-d-bugs mailing list