Developer forums (C::B DEVELOPMENT STRICTLY!) > Compiler Framework Redesign

cbVariant class - update: discarded

<< < (4/4)


--- 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.

--- End quote ---

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.

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


[0] Message Index

[*] Previous page

Go to full version