Re: [fpc-pascal] Dynamic array question

2023-01-12 Thread Vojtěch Čihák via fpc-pascal
der Sluis via fpc-pascal" Komu: fpc-pascal@lists.freepascal.org Datum: 12.01.2023 00:22 Předmět: Re: [fpc-pascal] Dynamic array question Vojtěch Čihák via fpc-pascal schreef op wo 11-01-2023 om 23:38 [+0100]: > is there a way how to have dynamic array "inside" another dynamic

Re: [fpc-pascal] Dynamic array question

2023-01-11 Thread Joost van der Sluis via fpc-pascal
Vojtěch Čihák via fpc-pascal schreef op wo 11-01-2023 om 23:38 [+0100]: > is there a way how to have dynamic array "inside" another dynamic > array? Not in the way you want. You could define an 'array of array', though. Or an array of records that contain an array.   > program project1; > {$mode

[fpc-pascal] Dynamic array question

2023-01-11 Thread Vojtěch Čihák via fpc-pascal
Hi,   is there a way how to have dynamic array "inside" another dynamic array?   program project1; {$mode objfpc}{$H+}   uses   {$IFDEF UNIX}   cthreads,   {$ENDIF}   Classes, SysUtils   { you can add units after this };   {$R *.res} type   TDynArray = array of Integer;   PTDynArray = ^TDynArray;