The limitation which PAWN has issued on arrays. Did you know?
#1

I just today discovered that one of the PAWN's limitations is that an array cant have more than 3 dimensions, but still the compiler doesn't complain. I have still not tested this, but I saw this when I was reading the source code:

pawn Код:
#define sDIMEN_MAX    3     /* maximum number of array dimensions */
Reply
#2

It should give error 53: exceeding maximum number of dimensions.
Reply
#3

But what about:

pawn Код:
#define sDIMEN_MAX    3     /* maximum number of array dimensions */
Reply
#4

What about it? It's just a definition, as long as you don't declare an array with more than 3 dimensions, you will not get the error.
Reply
#5

There are very few things that need more than 3 dimensions anyways, you can still work around that with using indexes then.
Reply
#6

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
What about it? It's just a definition, as long as you don't declare an array with more than 3 dimensions, you will not get the error.
Ah! I was going through the error list of pawn-lang.pdf and the reason for that error is that the current implantation of PAWN compiler only supports arrays with one or two dimensions, not three!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)