[Ecls-list] Wishlist/Requirement: Package locks

Juan Jose Garcia Ripoll lisp at arrakis.es
Tue Dec 20 02:38:04 UTC 2005

On Tue, 2005-12-20 at 16:32 +1100, ssmith wrote:
> The following code produces a 'package lock' error (on the COMMON-LISP
> package) on the three other lisp implementations I've tried (SBCL,
> ACL, Clisp):
>   (defpackage :my-test
>     (:use :cl)
>     (:export :test-class))
>   (in-package :my-test)
>   (defclass test-class ()
>     ((stream
>       :accessor stream)))
> However on ECL it produces a warning:
>   ;;; Warning: STREAM is being redefined.
>   ;;; Warning: (SETF STREAM) is being redefined.
> I don't think this counts as an ANSI bug per-se (the behaviour is
> 'undefined'), but the effect of this error is probably serious enough
> to warrant some sort of error condition.  Are package-locks a possible
> future feature?

ECL does have package locks. The only thing is that they were not
enforced for function definitions: only warnings were produced. I have
replaced these warnings with correctable errors in CVS. The nature of
the error is not a package-lock, however.


More information about the ecl-devel mailing list