Plse implement array indexes also like [x, y] iso [x][y]

Post your requests and ideas on the future development of mikroPascal PRO for PIC.
Post Reply
Author
Message
Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Plse implement array indexes also like [x, y] iso [x][y]

#1 Post by Dany » 13 Aug 2010 13:05

Please implement array indexes also like [x, y] iso [x][y], both in multidimensional array declarations and in the usage of the arrays.

So,

Code: Select all

var MyArray : array[5][10] of byte;
...
MyArray[2][3] := 20;
could become:

Code: Select all

var MyArray : array[5, 10] of byte;
...
MyArray[2, 3] := 20;
I did not now the PRO Pascal compiler was unable to handle that syntax (which is standard Pascal by the way...).

Apparently I never used multidimensional arrays before in one of my projects or units... :oops:

Thanks in advance, and keep up the good work! :D :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

User avatar
anikolic
mikroElektronika team
Posts: 1775
Joined: 17 Aug 2009 16:51
Location: Belgrade
Contact:

Re: Plse implement array indexes also like [x, y] iso [x][y]

#2 Post by anikolic » 16 Aug 2010 09:00

Hello Dany,

You are definitely right. Pascal standard allows this kind of syntax, and we should be going towards the standard as closest as we can get in the embedded world, but still keeping the solutions that make more sense in the world of microcontrollers (without making unnecessary overheads, just in order to implement standards meant to be carried out on a PC).

I have reported your suggestion to our developers. I will inform you of their response.

Best regards,
Aleksandar
Web Department Manager

Post Reply

Return to “mikroPascal PRO for PIC Wish List”