alfps@start.no (Alf P. Steinbach) wrote in message news:<40db5216.1885995437@news.individual.net>...[color=blue]
> * Graham:[color=green]
> >
> > On page 89 of Stroustrup's book "The C++ Programming Language" 3rd Ed.
> > He says that multidimensional arrays are best avoided outside
> > low-level code.
> >
> > What precisely does he mean by low-level code? That is fairly
> > relative terminology.
> >
> > Is he saying that the use of multidimensional arrays in C++ are not
> > desirable? That doesn't seem right to me.[/color]
>
> It is a relative term, not an absolute one.
>
> Put another way, whenever there isn't too high a price to pay for
> abstracting raw arrays, hiding them away behind safe interfaces (such as
> in e.g. std::vector), do so.
>
> The low-level code is then the once-only code that deals with the raw
> arrays directly, and the higher level code the code that uses the safer
> abstraction.[/color]
Hmm... By that argument he must say that @arrays@ rather than just
multi-dimension arrays in general must be avoided outside low level
code. IIRC he does say that else where. But that is not clear from the
current context.
P.S. I don't have TC++ at my desktop right now.
--
Imanpreet Singh Arora
isingh AT acm DOT org