You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eliminate support for anon Data or Data with ivars
This commit removes support for the following features:
* Dumping an anonymous Data. This is unsupported for the same
reasons as dumping anonymous modules or classes: there's no way
to reference the proper Data class, and defining a new anonymous
Data for every such element would not round-trip properly.
* Dumping a Data with instance variables. Instance variables on a
Data can only be set during the initialize chain when first
constructed, and such a chain is custom for each such Data class.
As there is no way to modify a Data after constructed and no way
to accurately invoke the custom initialize method, all Data with
instance variables are rejected.
Data is also no longer registered while loading, since it's not
possible to have a self-referential Data instance without a custom
initialize that sets an instance variable to self. The combination
of these removed features simplifies Data dumping and loading and
eliminates all allocate+initialize hacks.
0 commit comments