Use flattening rather than dynamic class instantiation

If you need to dynamically instantiate a class, you will find it's usually easier to do so by using Taligent's Resurrect to unflatten a flattened polymorphic object. This is much easier than using the general interface for dynamically instantiating a class (especially as the latter doesn't currently exist in the Taligent Application Environment).

When the dynamic instantiation interface is there, go ahead and use it. Unflattening a flattened object is just much easier. In some cases, you might need the full interface, but definitely think about unflattening an object first.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker