objective c - What exactly is happening when we do if(aValue) where aValue is a pointer? -
is implicit conversion/coercion of pointer happening? if type?
is exactly equivalent if(avalue != nil) in both cases?
is equivalent if(avalue != nil) in both cases?
yes. you're testing pointer non-zero value. garbage. point random object. doesn't matter.
Comments
Post a Comment