Reputation: 11
I need help in understanding why Allegro CL does not execute the in-package directive put in loaded file. More precisely I load the LISA environment and would like to make Lisa the active package, but after loading the lisp file with the directive the prompt continues to be CL-USER-
Upvotes: 0
Views: 138
Reputation: 780869
This is the correct behavior.
From CLHS documentation of LOAD
load
binds*readtable*
and*package*
to the values they held before loading the file.
So any reassignments to *package*
made while loading a file are discarded.
This allows IN-PACKAGE
to be used within the file to specify how the code in that file is processed, without having side effects on the user's environment.
Upvotes: 2