about summary refs log tree commit diff stats
path: root/cutil.lisp
diff options
context:
space:
mode:
authorDarren Bane <darren.bane@gmail.com>2020-09-02 23:46:59 +0100
committerDarren Bane <darren.bane@gmail.com>2020-09-02 23:46:59 +0100
commitd34eb60916327589576143fa84c1a2468bee6cf3 (patch)
treed6a4ad519c2bd0801ee9a385ac7da8bfb9e4b40f /cutil.lisp
parentf4389b863ecc0fe17cc13d12cc39ca2b37e3c0d7 (diff)
downloadlsp-d34eb60916327589576143fa84c1a2468bee6cf3.tar.gz
Making changes
Diffstat (limited to 'cutil.lisp')
-rw-r--r--cutil.lisp11
1 files changed, 11 insertions, 0 deletions
diff --git a/cutil.lisp b/cutil.lisp
new file mode 100644
index 0000000..0b569e2
--- /dev/null
+++ b/cutil.lisp
@@ -0,0 +1,11 @@
+(defpackage #:cutil
+  (:use #:common-lisp)
+  (:export
+   #:<abstract-class>))
+(in-package #:cutil)
+
+(defclass <abstract-class> () ())
+(defmethod make-instance ((self <abstract-class>) &key)
+  (error "Cannot instantiate abstract class ~A" (class-name c)))
+
+(provide "cutil")