Next: Module Manifests, Previous: Compiling Scheme, Up: Compiling Scheme [Contents][Index]
require
commands have one quoted argument and
are positioned before other Scheme definitions and expressions in the
file.
require
d SLIB modules
2
also appear at the beginning of their files conditioned on the feature
compiling
using require-if
(see require-if).
(require 'logical) (require 'multiarg/and-) (require-if 'compiling 'sort) (require-if 'compiling 'ciexyz)
define
,
define-syntax
, or defmacro
) suffices.
;@ (define (identity <obj>) <obj>)
An example of how to expand macro invocations is:
(require 'macros-that-work) (require 'yasos) (require 'pprint-file) (pprint-filter-file "collect.scm" macwork:expand)
There are some functions with internal require
calls
to delay loading modules until they are needed. While this reduces
startup latency for interpreters, it can produce headaches for
compilers.