[fpc-pascal] Dynamic array bug

silvioprog silvioprog at gmail.com
Wed Nov 7 15:31:41 CET 2018


On Wed, Nov 7, 2018 at 3:39 AM Ryan Joseph <ryan at thealchemistguild.com>
wrote:

> Good to know. I reported this before and Sven said it was fixed in an
> update (after another user had submitted the original patch).
>
> Are you able to get a := a + [4]; to work? I’m looking Sven’s old message
> titled "Feature announcement: Dynamic array extensions” and he says +
> operator now works.


Yes, it works. But only on Delphi:

a := a + [4];
writeln(a[3]); // prints 4

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20181107/d511d394/attachment.html>


More information about the fpc-pascal mailing list