Clear Interpreter Mode

clear_interpreter()

Clears all interpreted statements, objects, functions, threads, etc. generated in the current interpreter mode. Threads started in current interpreter session will be stopped, and deleted. Variables defined outside of the current interpreter mode will not be affected by a call to this function.

Only statements interpreted before the clear_interpreter() function will be cleared. Statements sent after clear_interpreter() will be queued. When cleaning is done, any statements queued are interpreted and responded to. Note that commands such as abort, skipbuffer and state commands are executed as soon as they are received.

Note: This function can only be called from an interpreter mode.

Tip: To expedite the clean, skipbuffer can be sent right before clear_interpreter().