-------------- Charles Yeomans _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
When you call an object method using a nil object reference, REALbasic
raises a NilObjectException. If, however, nilObjectChecking is set to
false in a pragma statement, what should happen? What does happen is
that the method is called and executes, and RS says that this is the
correct behavior. Upon reflection it appears that this isn't so
unreasonable; I suppose at some level this is equivalent to calling the
method with (secret) first parameter nil. So is the real danger here
that a method called on a nil reference might attempt to access object
properties? These are I believe available via pointer navigation from
the object address, but when the address is 0...
- Disabling nilobjectchecking Charles Yeomans
- Re: Disabling nilobjectchecking Joseph J. Strout
- Re: Disabling nilobjectchecking Charles Yeomans
- Re: Disabling nilobjectchecking Thomas Tempelmann
- Re: Disabling nilobjectchecking Norman Palardy
- Re: Disabling nilobjectchecking Mathieu Langlois
- Re: Disabling nilobjectchecking Theodore H. Smith
