contents   index   previous   next



SE.NOWHERE

This is a garbage sink object. Any write to any member of this object is ignored, as are attempts to create new members. Any read of a member returns the undefined value. It is intended for one particular use, namely as a return from functions that return an object/member pair when there is an error. If the programmer doesn't check the error return and just tries to use the returned object/member in this case, a SE.NOWHERE member is returned so the access does nothing and doesn't crash.

 

If you compile the core with the SE.TRAP_NOWHERE option on, accesses to this object will trigger assert failures. This is intended to facilitate debugging, so you can find where you have not properly checked your returns from ScriptEase API calls.

 


SE.DEFINES