I am trying to learn CLOS and bumped into this surprise. I have those 3 action methods that seemingly incorrectly match on my arguments. When I run tr ...
I am trying to learn CLOS and bumped into this surprise. I have those 3 action methods that seemingly incorrectly match on my arguments. When I run tr ...
I want to define a generic function in CL that takes an optional and a keyword argument both of which have a default value. I tried but this throws ...
In CLOS, how to specify that a method argument is a list of (e.g.) strings? e.g. something like: (defmethod m1 ((x (every 'string))) (dolist (y ...
I am trying to do the exercises on this tutorial about CLOS using SBCL and Slime (Emacs). I have this class, instance, and function to set values for ...
The Common Lisp HyperSpec covers the with-slots macro. However, the example is hard to grasp. Is there an easier and more didactic example about it? ...
I am reading the Wikipedia article about CLOS. It says that: This dispatch mechanism works at runtime. Adding or removing methods thus may lead t ...
This asks about initializing slots from other slots. What I want to achieve instead is to take some arguments as input - perhaps but not necessarily t ...
I am reading the book Object-Oriented Programming in Common Lisp by Sonja Keene. In Chapter 9, the author presents the following example: (defclass ...
I am reading the book Object Oriented Programming in Common Lisp from Sonja Keene. In chapter 2, the author says: The procedure for determining w ...
If I have two classes, a class parent and a class child. (defclass parent () ...) (defclass child (parent) ...) And I've defined 2 differe ...
Is there any way to call a :class allocated slot on the name of a class instead of an instance? Something like: (class-alloc-slot 'name-of-the-class) ...
I've been working through Practical Common Lisp's binary parser project, and attempted to split the generics (class and macro definitions) and specifi ...
I came across some strange behaviour when trying to customize the print-object function of a CLOS object. The function does generate the intended stri ...
I don't know of any practical uses for this, it just came to my mind whether there is any thing comparable to defmethod to defun for lambda? Something ...
I'm learning common-lisp and CLOS. I started with the tutorial from http://cl-cookbook.sourceforge.net/clos-tutorial/ In Section 4.3, it mentioned t ...
In Common Lisp, is it portable to use make-instance instead of make-condition to make condition objects? For example: Does this have something to ...
I'm trying to implement a programming language in Common Lisp by following this implementation in Java (https://craftinginterpreters.com/control-flow. ...
In the book Object Oriented Programming in COMMON LISP by S. Keene, she introduces specializing the behavior of the describe generic function by provi ...
I'm trying to build a simple rest api in Lucerne, but the clack:call method fails if the json is malformed. So, I extended the bass-app class and adde ...
I'm currently experimenting with macro's in Lisp and I would like to write a macro which can handle syntax as follows: The macro should take two l ...