[fpc-pascal] Feature announcement: Dynamic array extensions

Sven Barth pascaldragon at googlemail.com
Fri May 25 20:44:51 CEST 2018


Am 25.05.2018 um 08:42 schrieb Ryan Joseph:
>
>> On May 25, 2018, at 1:02 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>>
>> Yes, that is what it does. Though a possible optimization would be that the compiler detects "dynarr := dynarr + [elem]" and converts it to "Insert(elem, dynarr, High(dynarr))”.
> 100%

FPC now optimizes "dynarr := dynarr + [elem]" to "Insert(elem, dynarr, 
high(sizeint))" and "dynarr := [elem] + dynarr" to "Insert(elem, dynarr, 
0)".

Regards,
Sven



More information about the fpc-pascal mailing list