diff options
author | Darren Bane <darren.bane@gmail.com> | 2020-10-09 21:22:20 +0100 |
---|---|---|
committer | Darren Bane <darren.bane@gmail.com> | 2020-10-09 21:22:20 +0100 |
commit | b1f18384189e32fa29fadbb29d3043ade4aa67e5 (patch) | |
tree | 786194fc91812879634dc9bc5db9a828682f6d21 /cutil.lisp | |
parent | d34eb60916327589576143fa84c1a2468bee6cf3 (diff) | |
download | lsp-b1f18384189e32fa29fadbb29d3043ade4aa67e5.tar.gz |
Trying to debug abstract classes, WIP
Diffstat (limited to 'cutil.lisp')
-rw-r--r-- | cutil.lisp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cutil.lisp b/cutil.lisp index 0b569e2..2f10099 100644 --- a/cutil.lisp +++ b/cutil.lisp @@ -1,11 +1,14 @@ (defpackage #:cutil - (:use #:common-lisp) + (:use #:common-lisp :closer-mop) (:export #:<abstract-class>)) (in-package #:cutil) -(defclass <abstract-class> () ()) +(defclass <abstract-class> (standard-class) ()) (defmethod make-instance ((self <abstract-class>) &key) - (error "Cannot instantiate abstract class ~A" (class-name c))) + (error "Cannot instantiate abstract class ~A" (class-name self))) +(defmethod closer-mop:validate-superclass ((class <abstract-class>) + (superclass standard-class)) + t) (provide "cutil") |