I have this big polymorphic object hierarchy, and I want to expose these objects to another language using primitive types. I'm thinking my base object will have a dictionary of properties (C++), and each sublcass down the hierarchy will add properties or modify properties, and then when i forward to the other language, i don't need any casts - i just send the type, and the property dictionary.
thoughts?
Update: I'm bridging C++ and ActionScript through a third party library, if relevant.