[DGD] Multi-dimensional arrays

Sergey S. Koval serg at scs.ntu-kpi.kiev.ua
Sat Mar 23 04:33:00 CET 2002


Hello,
 I'we got nasty problem.

I have following code:

mixed * arr;

...
int i,j;
object ob;

  arr = allocate(SIZE_Y);
  for (i = 0; i < SIZE_Y; i++) arr[i] = allocate(SIZE_X);

...
  and later, i'm trying to do following:

 arr[some_int_variable][some_int_variable] = ob;

... and have "Index on bad type" run-time error.

When i'm trying to do following:
 arr[0][0] = 0;
i have same error.

What's wrong in my code ?

Regards, Serge.

_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list