[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
extending DEFSTRUCT
- To: common-lisp@SAIL.STANFORD.EDU
- Subject: extending DEFSTRUCT
- From: Dave.Touretzky@C.CS.CMU.EDU
- Date: Sat 24 Oct 87 15:16:08-EDT
I support the proposal of Gallagher and Corkill, with one modification:
Instead of *INHIBIT-DEFSTRUCT-PRINTERS*, there should be a variable called
*PRINT-STRUCTURE* that is analagous to *PRINT-ARRAY*.
When *PRINT-STRUCTURE* is T:
defstructs with their own print functions will use them
defstructs without prnt functions will print in the #S() notation
When *PRINT-STRUCTURE* in NIL:
defstructs with their own print functions will use them
defstructs without their own print function will print in the #<> notation
When *PRINT-STRUCTURE* is :FORCE
all defstructs print in #S() notation
-- Dave
-------