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
|
||||
(:use :common-lisp)
|
||||
(:local-nicknames (:actor :scopes/core/actor)
|
||||
(:shape :scopes/shape))
|
||||
(:shape :scopes/shape)
|
||||
(:util :scopes/util))
|
||||
(:export #:message-meta #:message #:create
|
||||
#:head #:data))
|
||||
|
||||
|
@ -14,9 +15,8 @@
|
|||
(defun message-meta ()
|
||||
(make-instance 'shape:record-meta :head-fields '(:domain :action :class :item)))
|
||||
|
||||
(defclass message (shape:record)
|
||||
((shape:meta :initform (message-meta) :allocation :class)
|
||||
(actor:customer :accessor customer :initarg :customer :initform nil)))
|
||||
(defclass message (shape:record actor:message)
|
||||
((shape:meta :initform (message-meta) :allocation :class)))
|
||||
|
||||
(defun create (head &key data customer)
|
||||
(shape:create 'message :head head :data data :customer customer))
|
||||
|
|
Loading…
Add table
Reference in a new issue