2009/9/13 Lukas Renggli <renggli(a)gmail.com>om>:
I think you should not use #kind to instantiate new
objects, but add
your own property to hold the class you want to instantiate.
That doesn't solve the problem that kind validation is borken for containers.
#kind is used for validation and that should remain like this. The
default for containers is Object, so it is a no-op that passes the
validation for all objects.
Not if you set kind on a container. And the check is not a no-op at
all. It checks the class of the memento against the kind which makes
no sense at all.
Cheers
Philippe