On 4/10/18 5:52 PM, Michael Coulombe wrote:
I had a bug in my code that was messing me up for a while, and it boiled
down to an identity check between two Object references with unrelated
static types, like below:
class A {}
class B {}
void main() {
A a = new A;
B b = new B;
if
On Tuesday, April 10, 2018 21:52:22 Michael Coulombe via Digitalmars-d-learn
wrote:
> I had a bug in my code that was messing me up for a while, and it
> boiled down to an identity check between two Object references
> with unrelated static types, like below:
>
> class A {}
> class B {}
> void
I had a bug in my code that was messing me up for a while, and it
boiled down to an identity check between two Object references
with unrelated static types, like below:
class A {}
class B {}
void main() {
A a = new A;
B b = new B;
if (a is b) {} // compiles
}
I was surprised that