chickadee » srfi-29 » load-localized-compiled-code

load-localized-compiled-code LIBRARY PACKAGE-NAME TEMPLATE-NAMESprocedure

Loads a Scheme code library and replaces the toplevel variable references from the templates with the actual value. Each item package-name+template-name has a variable reference upon entry. Upon exit this is replaced with the variable value after load.

Every item package-name+template-name referenced must be defined. Otherwise a (exn srfi-29 undefined) exception if raised.

LIBRARY is an absolute pathname, relative pathname, or (unitname pathname). The corresponding load call is load-relative, load-relative, and load-library. (See Unit eval.)

TEMPLATE-NAMES is a list of template-name.

A variable-reference is a symbol or (symbol symbol). The later is a module import reference; this is a brittle feature as it relies upon knowledge of implementation details.

Note that only load-relative is used for a library pathname. Be sure to provide an absolute-pathname when a current-directory relative pathname is needed.