It seems like you want dynamic typing in a statically typed language.

The proper way for heterogeneous collection of objects currently is:

  * with ref objects inheriting from the same base class.
  * with object variants



In the future you will also be able to use concepts and VTables.

Reply via email to