Next: , Previous: , Up: iklib   [Index]


6.35 Loading source files

Loading of source files can be done explicitly or by requesting a library with the import form. Here we see how to load files by specifying their pathname on the file system.

Function: load pathname
Function: load pathname eval-proc

Read and evaluate the file selected by the string pathname.

If eval-proc is given: it must be a procedure that takes a single argument, an annotated form, and evaluates it. The default eval-proc looks like this:

(define (load-handler x)
  (eval x (interaction-environment)))

The format of the annotated source is the one which is comprehensible by eval.