just a few small questions
MM
MM_member at pathlink.com
Sat Apr 15 06:34:27 PDT 2006
>
> module whatever;
> private {
> struct info
> {
> uint x,y,z;
> }
>
> info[500][500] a;
> }
>
>This should allocate the array of structs on the heap in a non-GC manner.
>
>One major difference from C arrays is that the indexes are *used* in the
>reverse order from C. Meaning that in C one would write ...
>
> item = a[X][Y];
>
>but in D one writes ...
>
> item = a[Y][X];
>
>--
>Derek Parnell
>Melbourne, Australia
Thx, just one more question...
I need to read alot of blocks(rectangles if seen as a plane) out of it like.
Is this way then the fastest implementaion?
And how much can I take from the heap without problems?
More information about the Digitalmars-d-learn
mailing list