Search
2:36:14
drmeister
But if I want to print the class of an object and the slots in a way that I can recreate the object when I load the file...
2:48:32
Bike
when you load the fasl, you mean?
2:48:38
Bike
in that case, no printing takes place. it's just make-load-form.
2:49:01
drmeister
No - using (cando:save-cando object <file>)
2:49:44
drmeister
https://github.com/drmeister/cando/blob/dev/src/lisp/cando/print-read.lisp#L39
2:50:03
Bike
okay, that does print, so it's print-object. make-load-form doesn't factor in.
2:51:39
Bike
this reminds me i should put in an ltvc_find_class too, on monday
2:51:56
Bike
avoiding a compile notably impacts build times, if only a little
2:52:11
Bike
maybe i should just generalize it into recognizing simple calls...
2:53:14
drmeister
Wouldn't I want to print a #.(progn #1=(make-instance ...) (initialize #1#))
2:54:38
Bike
no, you can just do it in one go.
2:55:04
Bike
like #.(make-instance whatever :slot1 #1=something :slot2 #1#) is possible if two slots have the same value
3:05:16
drmeister
Right - that's what I want.
3:46:01
beach
Good morning everyone!
9:53:09
drmeister
mop slot-definition-name
9:53:09
specbot
http://metamodular.com/CLOS-MOP/slot-definition-name.html