[fpc-pascal] Generic routines for both dynamic array and other collections

Ryan Joseph genericptr at gmail.com
Sun Feb 21 15:59:54 CET 2021



> On Feb 20, 2021, at 7:52 PM, Виктор Матузенко via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> And how do I write generic helper for all possible dynamic arrays?

By hand sadly. The RTL has added type helpers for many types but I don't think they added these for dynamic arrays. I agree that dynamic arrays should have a "Count" method by default and the RTL should provide "array of T" for all intrinsic types.


Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list