Edit:
Ok, just after I posted this I found that SBCL seems to have this extension. But something is not working. When defining
Code: Select all
(defclass my-seq (sequence) ())
Code: Select all
#'make-instance
Code: Select all
(defclass my-seq (sequence) ())
Code: Select all
#'make-instance
In fact Christophe Rhodes, the author of the extensible sequences paper, is an SBCL developer and quite famous Lisper.schoppenhauer wrote:Ok, just after I posted this I found that SBCL seems to have this extension.
You have to explicitly specify standard-object as a superclass, since it's not a superclass of sequence and the implementation is not allowed to change that. So:schoppenhauer wrote:But something is not working. When definingI cannot useCode: Select all
(defclass my-seq (sequence) ())
There is no applicable method for the generic function #<STANDARD-GENERIC-FUNCTION INITIALIZE-INSTANCE (5)>. Why is that? Why do I have to write my own initialize-instance? Usually, this is done automatically.Code: Select all
#'make-instance
Code: Select all
(defclass my-seq (sequence standard-object) ())