[Ecls-list] Newbie question
Goffioul Michael
goffioul at imec.be
Mon Dec 20 00:45:01 UTC 2004
> Thanks! It would be nice if there was a doc wiki so things
> like this could
> be compiled in one place. Its a bit of a put off for new
> users to have to
> sift the archives in vain for common things like this (although I did
> eventually find some posts hinting at it in passing).
>
> My next dumb question: how do I force ecl to reload a shared
> library? I
> want to recompile code and then call the new versions without
> restarting
> ecl. Based on glances at the gc code that unloads libraries I
> try this:
>
> (defun nuke-package (name)
> (let ((pkg (find-package name)))
> (do-symbols (s pkg)
> ;(si::unlink-symbol s))
> (when (eq (symbol-package s) pkg)
> (fmakunbound s)
> (makunbound s)
> (unintern s) ))
> (delete-package pkg)
> (si::gc t)))
>
>
> But it doesnt seem to be quite enough.
>
> This seems like a natural thing to do, am I missing the simple answer?
Sorry, I cannot answer here. But looking at ECL's code, I have the
impression that this is not supported (I may be wrong, of course).
Michael.
More information about the ecl-devel
mailing list