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
this should work but doesn't, because we don't have a pathway for serializing a subclass of a Class instance where we know the type as the base class. In the below case, we know that a ListOf(C) contains C pointers, and we can stick a 'Subclass' pointer in it. If we serialize the objects individually, the interpreter will dispatch to the Subclass serialize method. But if we serialize the list itself, we end up dispatching to 'C''s serialization routine, which can't handle the child class.
this should work but doesn't, because we don't have a pathway for serializing a subclass of a Class instance where we know the type as the base class. In the below case, we know that a ListOf(C) contains C pointers, and we can stick a 'Subclass' pointer in it. If we serialize the objects individually, the interpreter will dispatch to the Subclass serialize method. But if we serialize the list itself, we end up dispatching to 'C''s serialization routine, which can't handle the child class.
The text was updated successfully, but these errors were encountered: