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

Has anyone tried to use save-object?

I tried to use save-object, but when compiling the file MCL gave me the
following error messages:

;Compiler warnings for "Wolverine:MCL 2.0:SPIF:System Functions:save-object.lisp" :
;   Unused lexical variable class, in class-slots.
;   Undeclared free variable answers (3 references), in get-available-types.
> Error: There is no package named "USER" .
> While executing: ccl::%read-form
> Type Command-/ to continue, Command-. to abort.
> If continued: Retry finding package with name "USER".
See the RestartsI menu item for further choices.
1 > 
Invoking restart: Make "USER" be a nickname for package "CL-USER".
;Compiler warnings for "Wolverine:MCL 2.0:SPIF:System Functions:save-object.lisp" :
;   Undefined function database::get-defstruct-slotnames, in database::fill-struct.
;   Undefined function ccl::compiled-function-name, in database::get-compiled-function-name.
;   Undefined function database::classp, in database::get-available-types.
;   Undefined function ccl::class-direct-slots, in database::class-direct-slots.
;   Undefined function database::get-defstruct-slotnames, in database::get-ordered-slot-names.
;Loading #4P"ccl:SPIF;System Functions;save-object.fasl"...
"ccl:SPIF;System Functions;save-object"

This didn't seem to good, and, sure enough, when I tried to save a simple
object to a file, the following was received:

? (db:save-object foo "test")
> Error: Can't take CAR of "MODIFIED: Given a class object, return all the slot objects.".
> While executing: #<standard-method database::all-slotnames (t)>
> Type Command-. to abort.
See the RestartsI menu item for further choices.
1 > 

If anyone can help me understand this code or supply the appropriate fix(es)
I would be very grateful. I do need to read/write instances of objects
to a file, and I don't want to have to write my own set of functions.

Thanks for your help!

  -- Luke

Luke Hohmann                       | hohmann@csmil.umich.edu
University of Michigan             | 313-763-1043 (Office)
Artificial Intelligence Laboratory | 313-677-0952 (Home)
1101 Beal Ave                      | 
Ann Arbor, MI 48109-2110           | "You should do more aerobics!"