Next Previous Up Top Contents Index

12 Common Defsystem

12.2 Defining a system

A system is defined with adefsystem form in an ordinary Lisp source file. This form must be loaded into the Lisp image in order to define the system in the environment. Once loaded, operations can be carried out on the system by invoking Lisp functions, or, more conveniently, by using the system browser.

For example, the expression:

CL-USER 5 > (compile-system 'debug-app :force t)

would compile every file in a system calleddebug-app.

Note: When defining a hierarchy of systems, the leaf systems must be defined first -- that is, a system must be declared before any systems that include it.

By convention, system definitions are placed in a file calleddefsys.lisp which usually resides in the same directory as the members of the system.

The full syntax ofdefsystem is given in the LispWorks Reference Manual. Below is a brief introduction.

12.2.1 - DEFSYSTEM syntax
12.2.2 - DEFSYSTEM options
12.2.3 - DEFSYSTEM members
12.2.4 - DEFSYSTEM rules
12.2.5 - Examples

LispWorks User Guide - 14 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker