> What is your suggestion ?

When you already use ref object, you may consider inheritance. Or you may use 
sum types (union types) -- maybe bad if memory footprint of your objects 
differs a lot.

Reply via email to