[qitab-devel] Re: Nested extensions in cl-protobufs
Thomas Munro
munro at ip9.org
Sun Sep 22 09:47:11 UTC 2013
On 21 September 2013 01:10, Thomas Munro <munro at ip9.org> wrote:
> animal = Animal()
> animal.type = Animal.Cat
> cat = animal.Extensions[Cat.animal]
> # now work with cat...
> # now serialize animal ...
>
I think I worked out how to do this... something like:
(let ((animal (make-instance 'animal :type :cat))
(cat (make-instance 'cat)))
(setf (animal animal) cat)
;; now work with cat
;; now serialize animal
)
Sorry for the noise. And thanks for making cl-protobufs!
Thomas Munro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/qitab-devel/attachments/20130922/0ddbe4a9/attachment.html>
More information about the qitab-devel
mailing list