"The total size of a static array cannot exceed 16Mb."

Janice Caron caron800 at googlemail.com
Tue Oct 2 02:58:07 PDT 2007


On 10/2/07, Vladimir Panteleev <thecybershadow at gmail.com> wrote:
> Janice Caron Wrote:
> > Anyway, hopefully you get the idea. I'm going for more coffee before I
> > mistype anything else!
> Thanks - this indeed makes the code more readable, however now accessing an element involves two dereferences (the class, and the array pointer)

It doesn't have to be a class. It could just as easily be a struct.
Then you've only got one dereference.

> - and, possibly, a function call if the compiler won't inline it.

I would hope that the compiler would inline that. Maybe not in debug
mode, but certainly in release mode.



More information about the Digitalmars-d mailing list