Subj : Re: Why not unions To : comp.programming From : Jon Harrop Date : Wed Jul 27 2005 01:54 am Flavius Vespasianus wrote: > The problem is with all the alignment and data type differences among > compilers, this is effectively useless these days. Given that variants are still used extensively I don't think you can dismiss unions. Compiler differences are totally irrelevant. > I think you are mistaken about unions being more memory efficient than > structures. I think he meant that a union requires less space than a struct where all but one member is unused at any given time. -- Dr Jon D Harrop, Flying Frog Consultancy http://www.ffconsultancy.com .