[fpc-pascal] Array clearing

Jürgen Hestermann juergen.hestermann at gmx.de
Wed Apr 12 17:14:49 CEST 2017

Am 2017-04-12 um 16:36 schrieb Ryan Joseph:
 > Why magic? It seems silly the operator += doesn’t exist

Well, are we using Pascal or C? ;-)

 > or even a basic operation set like “add”, “remove”, “insert” that every array implementation in every language has.
 > Aren’t those just function around the existing dynamic array implementation in the compiler?

I aggree that these functions could be added.
I always create such functions myself but I need to
respect the type of my arrays and rewrite these functions
for each new type.
If they were available as standard routines it would avoid these rewrites.

More information about the fpc-pascal mailing list