chiark
/
gitweb
/
~mdw
/
sod
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bf8aadd
)
src/class-make-impl.lisp: Make `make-sod-MUMBLE' actually return a MUMBLE.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 30 Aug 2015 09:58:38 +0000
(10:58 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 6 Sep 2015 17:35:09 +0000
(18:35 +0100)
src/class-make-impl.lisp
patch
|
blob
|
blame
|
history
diff --git
a/src/class-make-impl.lisp
b/src/class-make-impl.lisp
index 32b2e61e22df7930e1a9b8cd35b4c416108fd3f7..f9d5734b472de5f1f8c9c140e9ab3cb14ba19cc4 100644
(file)
--- a/
src/class-make-impl.lisp
+++ b/
src/class-make-impl.lisp
@@
-87,7
+87,8
@@
(defmethod make-sod-slot
:location (file-location location)
:pset pset)))
(with-slots (slots) class
:location (file-location location)
:pset pset)))
(with-slots (slots) class
- (setf slots (append slots (list slot)))))))
+ (setf slots (append slots (list slot))))
+ slot)))
(defmethod shared-initialize :after ((slot sod-slot) slot-names &key pset)
"This method does nothing.
(defmethod shared-initialize :after ((slot sod-slot) slot-names &key pset)
"This method does nothing.
@@
-111,7
+112,8
@@
(defmethod make-sod-instance-initializer
(file-location location))))
(with-slots (instance-initializers) class
(setf instance-initializers
(file-location location))))
(with-slots (instance-initializers) class
(setf instance-initializers
- (append instance-initializers (list initializer)))))))
+ (append instance-initializers (list initializer))))
+ initializer)))
(defmethod make-sod-class-initializer
((class sod-class) nick name value-kind value-form pset
(defmethod make-sod-class-initializer
((class sod-class) nick name value-kind value-form pset
@@
-124,7
+126,8
@@
(defmethod make-sod-class-initializer
(file-location location))))
(with-slots (class-initializers) class
(setf class-initializers
(file-location location))))
(with-slots (class-initializers) class
(setf class-initializers
- (append class-initializers (list initializer)))))))
+ (append class-initializers (list initializer))))
+ initializer)))
(defmethod make-sod-initializer-using-slot
((class sod-class) (slot sod-slot)
(defmethod make-sod-initializer-using-slot
((class sod-class) (slot sod-slot)
@@
-163,7
+166,8
@@
(defmethod make-sod-message
:location (file-location location)
:pset pset)))
(with-slots (messages) class
:location (file-location location)
:pset pset)))
(with-slots (messages) class
- (setf messages (append messages (list message)))))))
+ (setf messages (append messages (list message))))
+ message)))
(defmethod shared-initialize :after
((message sod-message) slot-names &key pset)
(defmethod shared-initialize :after
((message sod-message) slot-names &key pset)
@@
-188,7
+192,8
@@
(defmethod make-sod-method
type body pset
(file-location location))))
(with-slots (methods) class
type body pset
(file-location location))))
(with-slots (methods) class
- (setf methods (append methods (list method)))))))
+ (setf methods (append methods (list method))))
+ method)))
(defmethod make-sod-method-using-message
((message sod-message) (class sod-class) type body pset location)
(defmethod make-sod-method-using-message
((message sod-message) (class sod-class) type body pset location)