defInitProc
defInitProc(t_contextNames_procName) =>t
Description
Registers a function that the system calls immediately after autoloading a context.
When a context is autoloaded, it is given a chance to perform initialization before control returns to top level. It is during such an initialization that session-dependent objects like ports can be regenerated. This function permits a predefined function s_procName to be called whenever the context t_contextName is loaded.
Arguments
|
Predefined function to be called when t_contextName is loaded. |
Value Returned
|
Always returns |
Examples
defInitProc("myContext" 'myInit)
=> t
Related Topics
Return to top