3 ms·
The language had support for dynamic arrays for ages and the intrinsic functions like insert, etc have been extended to work with them in latest version (i'm no
by badsectoracula 5y ago
The language had support for dynamic arrays for ages and the intrinsic functions like insert, etc have been extended to work with them in latest version (i'm not 100% sure if this is available in the latest relase, but it is available in the trunk). So for simple stuff that should work.
But yeah the containers that FPC provides are indeed cumbersome and i blame Delphi for that and FPC's insistence on copying all those bad features (ok, i understand the need to remain compatible so people can switch to FPC, but they can always provide better tools too - perhaps they're burned from when they implemented generics first and then Delphi implemented theirs in an incompatible way and now they have to support both).
On the other hand, you can make your own and i have mine which can use any old data structure, be it primitives, records or classes.