-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Per subject.
There's a couple of issues I can see in implementing it.
non-hooked
If we freeze an object it's going to be very sensitive to the class definition, unlike a typical hash-based object.
If the user inserts a new field or re-orders the fields and we've just frozen each of the member variables in order the values will end up in different member variables on thaw.
hooked
One design problem with STORABLE_thaw
is it pre-creates the hash/array object that's passed to STORABLE_thaw and doesn't allow it to be replaced.
This means Storable would need to be able to create a blank object of class to pass to STORABLE_thaw.
I've considered adding an alternative to STORABLE_thaw that accepts a returned object, but this has problems with object tag ordering (the mechanism used to ensure multiple references to the same object thaw to references to the same object).