next up previous contents index
Next: 3.4 Language differences Up: 3. The onyx program Previous: 3.2 Environment variables   Contents   Index

3.3 Initialization for interactive sessions

When onyx is run interactively, there are several stages of initialization, some of which can be controlled directly by the user.

  1. The interpreter is booted.
  2. Standard I/O is set up.
  3. The initial thread is created and used by all subsequent steps.
  4. The initial thread's stdin is modified to support interactive command line editing.
  5. Language changes specific to interactive invocation are made (see Section 3.4).
  6. Initialization expressions and scripts (specified by the -i and -s flags) are evaluated in the order they are specified on the command line.
  7. If the ONYXRC environment variable is set, then the contents of the file it specifies are evaluated.
  8. stdin is evaluated.



Jason Evans 2005-03-16