In Common Lisp, how can I override the default s开发者_如何学运维tring representation of a CLOS class so that calls to format or princ will print something intelligible, even when objects of that clas
In Common-Lisp CLOS Is it possible to dynamically add one more super 开发者_JS百科class in existing class.
I\'d like to use Common Lisp CLOS objects as keys in a hashtable.I thought it would be as simple as this:
In sbcl, *(sb-mop:class-precedence-list (find-class \'cons)) ==>(#<BUILT-IN-CLASS CONS> #<BUILT-IN-CLASS LIST> #<BUILT-IN-CLASS SEQUENCE>
In Common lisp: Redefine an existing function within a scope? the OP asked for something similar. But I want to create a method specializer, not a function.
I\'m pretty intrigued by Gambit Scheme, in particular by its wide range of supported platforms, and its ability to put C code right in your Scheme source when needed. That said, it is a Scheme, which
In my class definition, I want to initialize one slot based on the value of another slot.Here is the sort of thing I would like to do:
If you want to make CLOS objects in开发者_运维问答 common lisp printable (print readably), how do you go about doing this without using anything but print and read.There are two parts to doing this, a
How do I se开发者_运维问答e if one CLOS class is a subclass of another CLOS class?You can get the CLASS-NAME of a class.
I need to write a macro (with-hooks (monster method who what) &body body) 开发者_开发技巧for a game I\'m writing. Monster is a CLOS object, method and who are strings and what is a function (#\' n