[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

break on find-class



Hi,

while loading a (compiled) file containing CLOS method-definitions I get a
break. A sample of loading follows:

### START ###

...

;; Loading of file /users/armano/learning/FASL/exception/bc-envir.fasl is finish
ed.
;; Loading file /users/armano/learning/FASL/exception/bc-excep.fasl ...
;; Loading file /users/armano/learning/FASL/exception/bc-class.fasl ...
;; Loading file /users/armano/learning/FASL/exception/bc-defmh.fasl ...
;; Loading file /users/armano/learning/FASL/exception/bc-defcl.fasl ...
;; Loading file /users/armano/learning/FASL/exception/bc-exmpl.fasl ...
;; Loading file /users/armano/learning/FASL/exception/bc-slots.fasl ...
;; Loading of file /users/armano/learning/FASL/exception/bc-slots.fasl is finish
ed.
;; Loading of file /users/armano/learning/FASL/exception/bc-exmpl.fasl is finish
ed.
;; Loading of file /users/armano/learning/FASL/exception/bc-defcl.fasl is finish
ed.
*** - FIND-CLASS: EXAMPLES-META does not name a class
1. Break>

### END ###

where:

a - "bc-defcl.fasl" contains CLOS class definitions

b - "bc-defmh.fasl" contains CLOS methods definitions

c - find-class is called within the following defconstant (defined in
    "bc-defmh.lisp"):

    (defconstant *EXAMPLES-META-SLOTS*
      (strip 'examples :from (slots-names (find-class 'EXAMPLES-META))))

    ["strip" is a simple function that basically acts like "remove"]

d - "EXAMPLES-META" is defined as a class in "bc-defcl.lisp"

The break can be avoided loading the SOURCE file "bc-defcl.lisp" first, and
then reloading all FASL files ("bc-defcl.fasl" included). Of course this is
definitively not the best way to get a program loaded. I would greatly
appreciate any suggestion concerning (how to avoid) the above problem.

Thank you.

-----
Giuliano Armano, Assistant Professor,
DIEE, Univ. of Cagliari, Piazza d'Armi, 09123 Cagliari, Italy
Tel. +39-70-675.5878 FAX 675.5900 e-mail: armano@diee.unica.it