I just found out a bug. Tracing the bug, I saw that this is violated when A (and hence B) is nil.
I just want to make sure I am not missing anything here.
Is the answer of the question true or do I just find an exception?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The return code from a message sent to
nilwill always be 0, which equates toNOor false. So the behaviour you observe is expected and correct, even if it may not seem exactly intuitive. Differentnilobjects aren’t properly equal, sincenildoesn’t really have an identity.