[fpc-pascal] Feature announcement: Dynamic array extensions
Ryan Joseph
ryan at thealchemistguild.com
Thu Jun 21 10:17:39 CEST 2018
> On Jun 21, 2018, at 2:56 AM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>
> Addendum: the support for the "+" operator is now coupled to a new modeswitch "ArrayOperators".
Finally got to try this. It’s really satisfying being able to do:
var
arr: array of integer = (1, 2, 3);
i: integer;
begin
arr += [4];
for i in arr do
writeln(i);
thanks!
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list