True. However in actuality, I think that kind of objects is and always will be rather rare in Pike.
/ David Hedbor
Previous text:
2003-02-28 01:33: Subject: Save_Object
That wouldn't take care of the reference to the program in all cases, and the codec in the master would only handle it if the program is a pike module or a nested class in a pike module.
If one added additional constraints on the program, like that it must not contain any methods (except perhaps an implicit create function), then it would be possible to encode and decode such objects without the original program - the decoder would simply create an identical one instead. That would allow struct-like classes to be encoded and decoded as simply as mappings.
/ Martin Stjernholm, Roxen IS