Re: package frenzy
- From: "Paul F. Dietz" <dietz@xxxxxxx>
- Date: Mon, 30 May 2005 08:04:25 -0500
Joris Bleys wrote:
So I guess what I want to do is to make sure that
the result of the call to the read-line fn returns a symbol inside the
:exported-package, but I don't know how to do so. Both ep-internal-fn
and ep-external-fn are defined in the package :exporting-package (using
in-package).
Ah! The reader will intern symbols in the package
indicated by the special variable *PACKAGE*. At runtime, this
could be anything (not necessarily either of your two packages).
To control that, bind *PACKAGE* around the READ-LINE call:
(let ((*package* <desired-package>))
(read-line str nil nil))
Paul
.