Dynamic class creation?



Hi *,

An admittedly unusual question: Is there anything in the gtk+ architecture that 
would make it impossible to dynamically create object classes?

In a project I'm working on, I'd like to use the gtk+ object system as basis 
for some datastructures I'll be creating. These datastructures would be of some 
kind of parametrized type, with complicated parameters, but possibly many 
instances of each individual parametrized type. The actual parameters to be 
used will only be available during runtime (so things will be more easily 
extensible). So, I could store these complicated parameters in a separate 
structure, and point to that from the individual objects, or I could put this 
information in the object classes, but then I'd have to create them at runtime. 
Is this possible?

Regards,

Johannes.
--
Fourth law of thermodynamics:
If the probability of success is not almost one, it is damned near zero.

Bibliovorous chocophiliac.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]