32.  Miscellaneous  

(dump file)

Writes a snapshot of the running interpreter to file and returns #f. When file is executed, execution of the interpreter resumes such that the call to dump returns #t (i.e., dump actually returns twice). dump closes all ports except the current input and current output port.

This primitive is not supported on platforms that are not capable of creating an executable file from the memory image of the running process. If dump is available, the feature elk:dump is provided by the interpreter on startup (see ``Features'' above).

(eval list)
(eval list environment)

Evaluates the expression list in the specified environment. If environment is omitted, the expression is evaluated in the current environment.
Examples:

(let ((car 1))
  (eval 'car (global-environment)))     ==>  primitive car
(define x 1)
(define env
  (let ((x 2)) (the-environment)))
(eval 'x)       ==>  1
(eval 'x env)   ==>  2

(bound? symbol)

Returns #t if symbol is bound in the current environment, #f otherwise.

(type obj)

Returns a symbol indicating the type of obj.
Examples:

(type 13782343423544)              ==>  integer
(type 1.5e8)                       ==>  real
(type (lambda (x y) (cons x y)))   ==>  compound
(type #\a)                         ==>  character
(type '(a b c))                    ==>  pair
(type '())                         ==>  null
(type (read
  (open-input-string "")))         ==>  end-of-file

(void? obj)

Returns true if obj is the non-printing object, false otherwise.

(command-line-args)

Returns the command line arguments of the interpreter's invocation, a list of strings.


Markup created by unroff 1.0,    September 24, 1996,    net@informatik.uni-bremen.de