[fpc-pascal] List of integers? Any class available in RTL or FCL to help?

Sven Barth pascaldragon at googlemail.com
Wed Dec 14 17:11:58 CET 2016


Am 14.12.2016 14:31 schrieb "Lars" <noreply at z505.com>:
> I think I once thought, can I make an "array of array of const" to try to
> expand on the power of array of const. Which seems like a silly idea, but
> academically interesting. Also, Varients are related to general
> programming (generic). But no one likes variants, as it is like dynamic
> typing.. Not sure if you can create an array of variant and program
> generally that way. Doesn't really matter as people hate variants and tend
> to avoid them.

Ehm... You are aware that "array of const" is nothing else than a "array of
lightweight variant" (namely TVarRec)? So with "array of const" you *are*
already working with dynamic typing, with only TVarRec being more
restricted than Variant.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20161214/ef04208d/attachment.html>


More information about the fpc-pascal mailing list