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, 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, to find where you have not properly checked your returns from ScriptEase API calls.

 


SE_DEFINES