<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body smarttemplateinserted="true">
<div id="smartTemplate4-template">Hi,</div>
<div>
<blockquote type="cite"><br>
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
</blockquote>
</div>
<div><br>
But a managed record to replace an interface, would only contain a
single pointer/class ref. That can be copied fast<br>
</div>
<div><br>
<p> </p>
<br>
<br>
Bye,<br>
Benito </div>
<div class="moz-cite-prefix">On 16.02.21 21:49, Marco van de Voort
via fpc-pascal wrote:<br>
</div>
<blockquote type="cite"
cite="mid:604947f8-09a3-5b24-e65f-aca02b9e8959@pascalprogramming.org">
<br>
Op 2021-02-16 om 21:33 schreef Ryan Joseph via fpc-pascal:
<br>
<blockquote type="cite">
<br>
<blockquote type="cite">On Feb 16, 2021, at 1:27 PM, Marco van
de Voort via fpc-pascal
<a class="moz-txt-link-rfc2396E" href="mailto:fpc-pascal@lists.freepascal.org"><fpc-pascal@lists.freepascal.org></a> wrote:
<br>
<br>
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
<br>
</blockquote>
deep copying? You mean from ref counted types like "array of"
and ansistring?
<br>
</blockquote>
<br>
No, use of TP objects and records in e.g. properties in not
carefully crafted code. They are a lot less userfriendly.
<br>
<br>
<br>
_______________________________________________
<br>
fpc-pascal maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>
<br>
</blockquote>
</body>
</html>