News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

cbVariant class - update: discarded

Started by rickg22, December 30, 2005, 01:23:36 AM

Previous topic - Next topic

rickg22

Quote from: killerbot on December 30, 2005, 09:41:45 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.

rickg22

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! :)