[fpc-devel] Record types with unbounded trailing data

Sven Barth pascaldragon at googlemail.com
Mon Jun 24 07:23:46 CEST 2019


Am 24.06.2019 um 05:57 schrieb J. Gareth Moreton:
> We can't really use a new keyword to define an unbounded array, so I'm 
> wondering if we can work with the syntax for open arrays.  For 
> example, say we redefined LOGPALETTE to the following:
>
> LOGPALETTE = record
>   palVersion : WORD;
>   palNumEntries : WORD;
>   palPalEntry : array of PALETTEENTRY;
> end;
Michael already shot this, but nevertheless: if you would use that 
syntax then how would you differentiate from records that really contain 
a dynamic array and not such a unbounded one?

Regards,
Sven


More information about the fpc-devel mailing list