[Ecls-list] [bug] forward-referenced superclasses
Daniel Herring
dherring at tentpost.com
Thu Sep 18 06:33:05 UTC 2008
Hi,
I think this was a regression in ecl since 0.9k (tried with 0.9l and
recent git 8.9.0).
Anyway, a class definition like
(defclass b (a) (x))
(defclass a () (y))
now gives a warning; this can cause ASDF compilations to fail as in
;;; Compiling /tmp/cl-containers/dev/containers.lisp.
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
;;; Compiling (DEFPARAMETER +EMPTY-INITIAL-ELEMENT+ ...).
;;; Compiling (DEFCLASS ABSTRACT-CONTAINER ...).
;;; Compiling (DEFCLASS CONCRETE-CONTAINER ...).
;;; Compiling (DEFCLASS CONTAINER-NODE-MIXIN ...).
;;; Compiling (DEFCLASS LIST-CONTAINER ...).
;;; Warning: Class CONTENTS-AS-LIST-MIXIN has been forward referenced.
...
;;; Warning: COMPILE-FILE warned while performing #<ASDF:COMPILE-OP NIL 55222752> on
#<ASDF:CL-SOURCE-FILE "containers" "cl-containers" 54710056>.
#<a STREAM-ERROR>
Broken at SI:BYTECODES.Available restarts:
Reordering the classes in cl-containers easily worked around the problem;
but this should probably be fixed in ECL as well. As hinted earlier, ISTR
cl-containers compiling without problems in 0.9k.
Later,
Daniel
More information about the ecl-devel
mailing list