A The Application Environment

A.4 Using CLOS in the Application Environment

You can use CLOS in the Application Environment, but you must precompile all dispatch code. A CLOS application will run without a compiler or precompiled dispatch code, but the dispatch code that would normally be compiled at run-time is slower.

To create and use a file containing compiled dispatch code, use these steps.

;;; Add an IN-PACKAGE because you need one in
;;; every file you compile.
(in-package "CLOS")

;;; This call expands into the necessary dispatch code. (compile-all-dispatch-code)

For more information, see the reference page forcompile-all-dispatch-code in The Common Lisp Object System.


The User's Guide - 9 SEP 1996

Generated with Harlequin WebMaker