[fpc-devel] Overloading standard functions

Sven Barth pascaldragon at googlemail.com
Wed Jun 19 18:05:57 CEST 2019

Виктор Матузенко <vitek03 at gmail.com> schrieb am Mi., 19. Juni 2019, 16:25:

> ср, 19 июн. 2019 г. в 17:10, Marco van de Voort <fpc at pascalprogramming.org
> >:
>> No. Such guarantees/constraints on a long term basis would paralyse the
>> project too much. We try to avoid breaking backwards compatibility as
>> much as possible, but we can't always guarantee it absolutely.
> Ok, just for clarification: is that "builtin" pitfall required at all?
> What makes
> Length and Copy special and non-overloadable?

They are special because they can also be used with any array type. This
isn't something that can be modeled using normal functions.
And all intrinisics behave that way (e.g. Writeln does as well).


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190619/6317ecdb/attachment-0001.html>

More information about the fpc-devel mailing list