[fpc-pascal] Feature announcement: Dynamic array extensions

Ryan Joseph ryan at thealchemistguild.com
Thu May 24 17:27:18 CEST 2018



> On May 20, 2018, at 7:23 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> The compiler now implements a "+" operator for arrays which is the same as if Concat() would be called on the arrays.
> 

I haven’t built it yet but I’m curious, does += now push an element to the array or does this just work to concat 2 arrays? I would expect:

a: array of string = ();
a += ‘foo’;


to push a single string on the array.

Also can you use type helpers with dynamic arrays yet? Thinking about how to extend them if possible.

Thanks.

Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list