From: Ville V. <vil...@gm...> - 2009-02-26 19:32:42
|
On Thu, Feb 26, 2009 at 6:59 PM, Alessio Stalla <ale...@gm...> wrote: > I'm afraid that every object you want to serialize has to implement > Serializable (or inherit from a class which does - and given how ABCL Not really. If the containing object implements custom serialization (by defining writeObject, readObject and readObjectNoData), the object can serialize contained objects just fine, without requiring that the contained objects implement Serializable. Sure, all top-level (from the serialization point of view) objects need it, but anything "under" that level does not. Anyhow, the point you make about making LispObject serializable seems valid, and avoid polluting it everywhere. I only wonder if the capability of being serializable is inherited, because I would think it might not be. Once again, I may be wrong. |