When writing morph methods for PMC classes, am I right in thinking that if
morphing from class A to class B, where both use the PMC_struct_val to
store structures of different types, it's totally up to the morph method
to know how to correctly dispose of the old class A structure, and create
and initialised a class B structure?

In effect morph has to be friends of both A and B, because it needs to break
encapsulation?

Nicholas Clark

Reply via email to