Re: [fpc-pascal] Constant of 2D array

2012-09-11 Thread Alexander Shishkin
11.09.2012 16:51, Felipe Monteiro de Carvalho пишет: Hello, Can I write constants of a 2D array? I am trying to convert some C++ code which uses this ... so far I tryed: const number_return_map: array[0..7][0..7] of U8 = ( ( 15, 14, 13, 12, 11, 10, 9, 8 ), ( 14, 0, 1, 3, 6, 10, 10,

Re: [fpc-pascal] Constant of 2D array

2012-09-11 Thread Felipe Monteiro de Carvalho
On Tue, Sep 11, 2012 at 2:58 PM, Vincent Snijders wrote: > const number_return_map: array[0..7,0..7] of byte = Ah, nice, thanks =) Now it works... and the syntax is almost the same as in C++ which facilitates the conversion -- Felipe Monteiro de Carvalho

Re: [fpc-pascal] Constant of 2D array

2012-09-11 Thread Vincent Snijders
2012/9/11 Felipe Monteiro de Carvalho : > Hello, > > Can I write constants of a 2D array? I am trying to convert some C++ > code which uses this ... so far I tryed: > > const number_return_map: array[0..7][0..7] of U8 = const number_return_map: array[0..7,0..7] of byte = Vincent _

[fpc-pascal] Constant of 2D array

2012-09-11 Thread Felipe Monteiro de Carvalho
Hello, Can I write constants of a 2D array? I am trying to convert some C++ code which uses this ... so far I tryed: const number_return_map: array[0..7][0..7] of U8 = ( ( 15, 14, 13, 12, 11, 10, 9, 8 ), ( 14, 0, 1, 3, 6, 10, 10, 9 ), ( 13, 1, 2, 4, 7, 11, 11, 10 ), ( 12, 3,