Lisp HUG Maillist Archive

printing a structure

Hello,
The printed representation of the structure define by:
(make-package :test)
(in-package :test)

(defstruct thing foo bar)

is, in another package:
CL-USER 4 > (test::make-thing)
#S(TEST::THING TEST::FOO NIL TEST::BAR NIL)

in cmucl and clisp it is:
#S(TEST::THING :FOO NIL :BAR NIL)

The problem is when i read a representation of such structure from a
file. If it was written with LW, I can't read it with clisp or cmucl, I
get an error "Unknown keyword: TEST::FOO".

Is the printed representation of structures implementaion dependent ?

I am using LW 4.2.6 for Linux.

-- 
Thibault Langlois <tl@di.fc.ul.pt>
FCUL/DI
-- 
Thibault Langlois <tl@di.fc.ul.pt>
FCUL / DI


Re: printing a structure

Unable to parse email body. Email id is 2394

Updated at: 2020-12-10 08:56 UTC