Mail Archives: djgpp/1995/02/14/09:46:52
>
> Does anyone know whether plans are afoot to implement arrays of
> objects under G++. I tried to use a static array of objects of my
> own (TIFF support objects), but the compiler apologised very nicely
> and said they weren't supported.
>
Although I'm not a fluent C++ programmer myself, I seem to remember
(from one of Bjarne's books) that the C-type built-in arrays (a[])
are not appreciated very much by the C++ folks due to their relative
unsafety (no out-of-range checking done).
Why don't you use a 'bag' or some similar C++ data structure to
gather your objects ? ;-)
Pieter Kunst.
- Raw text -