[slime-devel] Re: in-package at REPL?
tsiivola at cc.hut.fi
Wed Jul 14 22:29:17 UTC 2004
On Wed, 14 Jul 2004, Peter Seibel wrote:
> Hmmm. I don't think I explicitly deleted any packages but I may have
> reevaluated various DEFPACKAGE forms. Mightn't that sometimes cause an
> implicit DELETE-PACKAGE? Or something that would confuse SLIME in the
It _would_ be legal, since the consequences are undefined if a defpackage
form that is at variance with the current state of the package is
evaluated... but that sounds like a fairly inhospitable way to go about
things, so I'd be a tad surprised if some implementation does that.
I think it's just Slime getting out of synch when eg. package nicknames
change, as it seems to be holding on to the package name, not the object
(which would preserve identity across renames):
CL-USER> (defpackage :temporary (:use :cl) (:nicknames :tmp))
CL-USER> (in-package :tmp)
TMP> (rename-package :temporary :temporary) ; remove nickname
TMP> (find-package :tmp) ; really gone
TMP> *package* ; so where are we really....
TMP> (in-package :cl-user)
-- Nikodemus "Not as clumsy or random as a C++ or Java.
An elegant weapon for a more civilized time."
More information about the slime-devel