expired-error. ( obj -- )


Error description
Thrown by alien-address and alien-invoke if an alien object passed in as a parameter has expired. Alien objects expire if they are saved an image which is subsequently loaded; this prevents a certain class of programming errors, usually attempts to use uninitialized objects, since holding a C address is meaningless between sessions.

You can check if an alien object has expired by calling expired?.


: expired-error. ( obj -- )
"Object did not survive image save/load: " write third . ;