[fpc-pascal] Traits Proposal
Marco van de Voort
fpc at pascalprogramming.org
Wed Feb 17 14:31:26 CET 2021
Op 2021-02-17 om 00:02 schreef Benito van der Zander via fpc-pascal:
>>
>> And there often is a lot of unintentional deep copying. This is also
>> why a property returning a record is fairly useless except for
>> extremely small records like TPoint (and even that is not optimal no
>
> But a managed record to replace an interface, would only contain a
> single pointer/class ref. That can be copied fast
(1) A record is not a pointer. So that would require some implicit
referencing in the property
(2) If it was managed, it would be an allocation, so I don't understand
this.
More information about the fpc-pascal
mailing list