[cells-devel] Re: question about cells

Ken Tilton kentilton at gmail.com
Wed Jun 7 22:27:37 UTC 2006


>
> Hmm, maybe the error does not need to announce where it is in the source?
>

OK, I just committed code to produce this (we can continue refining if
necessary, but I like this so wanted to get it in):

Break: cellular slot STATUS of #<MOTOR> cannot be SETFed because it is not
mediated by a Cell with :inputp t. To achieve this, the initial value :ON --
whether
supplied as an :initform, :default-initarg, or at make-instance time via
an :initarg -- should be wrapped in either macro C-IN or C-INPUT.
In brief, initialize STATUS to (c-in :ON) instead of plain :ON

Code:

(unless c
    (c-break "cellular slot ~a of ~a cannot be SETFed because it is not
mediated by a Cell with :inputp t. To achieve this, the initial value ~s --
whether
supplied as an :initform, :default-initarg, or at make-instance time via
an :initarg -- should be wrapped in either macro C-IN or C-INPUT.
In brief, initialize ~0@*~a to (c-in ~2@*~s) instead of plain ~:*~s"
      slot-name self (slot-value self slot-name)))

ken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cells-devel/attachments/20060607/de501393/attachment.html>


More information about the cells-devel mailing list