Author Topic: cbVariant class - update: discarded  (Read 39465 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: cbVariant class - REQUIRED! Need implementation
« Reply #15 on: December 31, 2005, 08:31:26 am »
Storing a type in the class and using unions.
Last month in Vegas several Gurus were flaming against those kind of things.

Mind giving us an example? See, the question with the variant type... is that we need it to be:

a) Compact - to use the least possible memory, because we'll be using THOUSANDS of these.
b) Easily serializable. For me, using a char to define the type fits this.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: cbVariant class - update: disposed
« Reply #16 on: January 02, 2006, 08:28:20 pm »
Anyway, after thinking it for a while, maybe the use of variants isn't such a good idea. At least not for the compiler framework (it might prove useful in some config-related business). Thanks all for your feedback! :)