A
Andrew Gniadek
hey,
if i overload the == operator then i have problems with checking if a
reference to an object is null. just wondering how i can get away with
it. because as soon as I overload it then i can't check for a null
reference within that implementation cuz it gets recursively called
resulting in a stack overflow.
operator overloading is still rough waters for me. mostly worked in java
so never had that option.
appreciate any help, thx.
A.
if i overload the == operator then i have problems with checking if a
reference to an object is null. just wondering how i can get away with
it. because as soon as I overload it then i can't check for a null
reference within that implementation cuz it gets recursively called
resulting in a stack overflow.
operator overloading is still rough waters for me. mostly worked in java
so never had that option.
appreciate any help, thx.
A.