From: <jm...@st...> - 2000-08-12 19:40:36
|
Sam Steingold <sd...@gn...> writes: > > * In message <xao...@an...> > > * On the subject of "cllib/closio print-object and :initargs" > > * Sent on 11 Aug 2000 21:28:31 -0400 > > * Honorable jm...@st... (John M. Adams) writes: > > > > (1) My slot initargs are keyword symbols, so merely outputing slot > > names as the closio print-object does didn't work with read-object. > > The following works for me. > > > > (format out " ~w ~w" > > I used " ~s ~s" here. > what error are you getting? > What out put do you get, and what do you need? As I recall, I wanted *print-escape* t to print keyword symbols with colons. With closio, read-object was doing this (make-instance 'blah x 1 y 2 z 3) whereas I think I need (make-instance 'blah :x 1 :y 2 :z 3) The closio approach is problematic because it tries to use slot-names instead of actual initarg specs to construct the make-instance form. > > The closio print-object calls port:clos-slot-list which returns a list > > of mere slot names. This routine bends over backwards to mask > > differences between a bunch of clossy environments--a road I'm not > > inclined to travel. > > what's your problem? > you get portability for free - why not? That's just my excuse for not sending an actual patch. I didn't think I could fix it to my satisfaction and adhere to the apparent spirit of the existing implementation. > Thanks for trying CLLIB. I like it. Thanks for making it available. -- John M. Adams |