пн, 22 февр. 2021 г. в 16:11, Sven Barth via fpc-pascal <
[email protected]>:

>
> Arrays are simply no structured types,
>

Actually they are...


> thus them having "properties" is wrong as well. If users want expect
> arrays to be object oriented they should use corresponding languages like
> Java or C#.
>

I don't want them to be objects, I want to write some functions once and be
able to specialize them
for many different types. I thought this is exactly the purpose of the
generic routines feature.

Example of such an algorithm is binary search. I am able to access elements
with [] operator of both
arrays and objects, but I cannot get length in a generic way.

-- 
Victor Matuzenko (Виктор Матузенко)
_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to