On 21 September 2013 01:10, Thomas Munro <munro@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