[fpc-pascal] about dynamic array

Graeme Geldenhuys graemeg.lists at gmail.com
Thu May 6 12:16:22 CEST 2010


2010/5/6 spir ☣ <denis.spir at gmail.com>:
>
> If the answers to last 2 questions is "only every 29th of februar", how can one have a "flexible" array? Is there something like that in stock? Would you implement it on top of dynamic array, or rather from scratch on top of static array (since the "dynamicity" does not seem very helpful)?
>

Use a list class instead. Descend from TList or embed TList in a class
as a field variable. I hardly ever use arrays, simply because list
classes can do everything you mention and works as expected.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list