Mattias Gaertner <nc-gaert...@netcologne.de> schrieb am So., 20. Mai 2018, 17:58:
> >[...] > > === code end === > > > > For constants the dynamic array constants adhere to the writable > > constants switch $J. E.g. the following will result in an exception: > > > > === code begin === > > > > {$J-} > > const > > Test1: array of LongInt = (1, 2, 3); > > begin > > Test1[1] := 42; > > end. > > This seems to be inconsistent with > > procedure Test(const a: TStringDynArray); > begin > a[1]:='42'; > end; > > Isn't it? > But it is consistent with static array constants and that is what counts... Regards, Sven >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal