fix message creation: must be derived from actor:message
This commit is contained in:
parent
8d81c57f52
commit
a8ffd8bd72
1 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,8 @@
|
||||||
(defpackage :scopes/core/message
|
(defpackage :scopes/core/message
|
||||||
(:use :common-lisp)
|
(:use :common-lisp)
|
||||||
(:local-nicknames (:actor :scopes/core/actor)
|
(:local-nicknames (:actor :scopes/core/actor)
|
||||||
(:shape :scopes/shape))
|
(:shape :scopes/shape)
|
||||||
|
(:util :scopes/util))
|
||||||
(:export #:message-meta #:message #:create
|
(:export #:message-meta #:message #:create
|
||||||
#:head #:data))
|
#:head #:data))
|
||||||
|
|
||||||
|
@ -14,9 +15,8 @@
|
||||||
(defun message-meta ()
|
(defun message-meta ()
|
||||||
(make-instance 'shape:record-meta :head-fields '(:domain :action :class :item)))
|
(make-instance 'shape:record-meta :head-fields '(:domain :action :class :item)))
|
||||||
|
|
||||||
(defclass message (shape:record)
|
(defclass message (shape:record actor:message)
|
||||||
((shape:meta :initform (message-meta) :allocation :class)
|
((shape:meta :initform (message-meta) :allocation :class)))
|
||||||
(actor:customer :accessor customer :initarg :customer :initform nil)))
|
|
||||||
|
|
||||||
(defun create (head &key data customer)
|
(defun create (head &key data customer)
|
||||||
(shape:create 'message :head head :data data :customer customer))
|
(shape:create 'message :head head :data data :customer customer))
|
||||||
|
|
Loading…
Add table
Reference in a new issue