chiark
/
gitweb
/
~mdw
/
sod
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branches 'mdw/doc-reorg' and 'mdw/parser-fixes'
[sod]
/
src
/
class-make-impl.lisp
diff --git
a/src/class-make-impl.lisp
b/src/class-make-impl.lisp
index 3c5bb3579acebe6332e1c0193d5c58ae693f78b0..7495c0182e631b4b02eb49fb0a9ab8995c2e1101 100644
(file)
--- a/
src/class-make-impl.lisp
+++ b/
src/class-make-impl.lisp
@@
-66,6
+66,8
@@
(default-slot-from-property (class 'chain-link slot-names)
(defmethod make-sod-slot
((class sod-class) name type pset &optional location)
(with-default-error-location (location)
(defmethod make-sod-slot
((class sod-class) name type pset &optional location)
(with-default-error-location (location)
+ (when (typep type 'c-function-type)
+ (error "Slot declarations cannot have function type"))
(let ((slot (make-instance (get-property pset :slot-class :symbol
'sod-slot)
:class class
(let ((slot (make-instance (get-property pset :slot-class :symbol
'sod-slot)
:class class