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@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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to