Re: message to nil? (very basic question)
Re: message to nil? (very basic question)
- Subject: Re: message to nil? (very basic question)
- From: Ondra Cada <email@hidden>
- Date: Sun, 20 Jan 2002 17:57:14 +0100
Andrew,
>
>>>>> Andrew Abernathy (AA) wrote at Sat, 19 Jan 2002 19:16:39 -0800:
AA> >Is it allowed to send a message to nil or will it crash or give some
AA> >runtime errors or such things?
AA>
AA> This is not always safe!!!
It *IS* *ALWAYS* *UTTERLY* safe!!!!
What might not be safe is interpreting the return value in case it is not
convertible from id. You can _send_ a message to nil quite securely
regardless the return type, though.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc