Re: [fpc-pascal] Doubt related to the issue #30498

2016-08-23 Thread silvioprog
On Tue, Aug 23, 2016 at 2:57 AM, Sven Barth wrote: [...] > See here: http://bugs.freepascal.org/view.php?id=30503 > > Regards, > Sven > Thank you! :-) I did: ... {$IFDEF FPC} var VPairs: TArray>; {$ENDIF} begin ... {$IFDEF FPC} // issues #30503 and #30498 SetLength(VPairs, 2); VPairs[0]

Re: [fpc-pascal] Doubt related to the issue #30498

2016-08-22 Thread Sven Barth
Am 23.08.2016 04:24 schrieb "silvioprog" : > > Hello, > > A possible inline way (without declaring specialized local variables) to compile the attached test at the issue #30498 is: > > ... > procedure Test(const AItems: TArray); > begin > end; > > begin > // Test(['foo', 'bar']); issue #304

[fpc-pascal] Doubt related to the issue #30498

2016-08-22 Thread silvioprog
Hello, A possible inline way (without declaring specialized local variables) to compile the attached test at the issue #30498 is: ... procedure Test(const AItems: TArray); begin end; begin // Test(['foo', 'bar']); issue #30498 Test(TArray.