clos
Lisp: How to override default string representation for CLOS class?
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[详细]
2023-04-04 16:52 分类:问答Is it possible to dynamically add one more super class in existing class
In Common-Lisp CLOS Is it possible to dynamically add one more super 开发者_JS百科class in existing class.[详细]
2023-03-28 00:12 分类:问答Using Common Lisp CLOS objects as keys in a hashtable?
I\'d like to use Common Lisp CLOS objects as keys in a hashtable.I thought it would be as simple as this:[详细]
2023-03-18 08:50 分类:问答Strange class precedence list in sbcl
In sbcl, *(sb-mop:class-precedence-list (find-class \'cons)) ==>(#<BUILT-IN-CLASS CONS> #<BUILT-IN-CLASS LIST> #<BUILT-IN-CLASS SEQUENCE>[详细]
2023-03-08 07:26 分类:问答lisp: How to create temporary method specialization within a scope
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.[详细]
2023-03-01 05:11 分类:问答Comparing Common Lisp with Gambit w.r.t their library access and object systems
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[详细]
2023-02-02 10:54 分类:问答Initializing slots based on other slot values in Common Lisp Object System class definitions
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:[详细]
2023-01-14 05:37 分类:问答Make clos objects printable in lisp
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[详细]
2023-01-04 17:51 分类:问答Test if a class is a subclass of another class in common lisp
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.[详细]
2023-01-02 10:01 分类:问答How to write (simple) macro?
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[详细]
2022-12-31 03:03 分类:问答