ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/14/09:46:52

From: kunst AT prl DOT philips DOT nl
Subject: Re: Implementation of C++
To: B DOT S DOT Runnacles AT soton DOT ac DOT uk (B.S.Runnacles)
Date: Tue, 14 Feb 1995 15:09:30 +0100 (MET)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP users list)

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


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019