<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Hairy Pixels via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Sa., 19. Okt. 2024, 03:18:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Oct 19, 2024 at 2:31:36 AM, Sven Barth via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-pascal@lists.freepascal.org</a>> wrote:<br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" type="cite">
This would mean that a new class type or some kind of additional attribute would have to be introduced which would have to be incompatible to non-reference-counted classes as otherwise there would be the chance for memory leaks or use-after-free again. This in turn would mean that essenentially the whole class hierarchy would have to be reimplemented. <br></blockquote><div class="gmail_quote"><br></div>You just only adopt it when you want it or in new programs entirely. Remember we’re talking about new users with no programs wanting to start fresh.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You don't get it, do you? It's either all or nothing. Because otherwise there *will* be problems.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" type="cite"><br>And that whole shebang is just not worth it. If someone wants a full ARC language then simply don't use Object Pascal. <br>
</blockquote>
</div>
<br>
<div dir="ltr">What’s the appeal to new programmers with this attitude? FPC already has ARC on a few types so it stands out the classes are excluded. They don’t care about backwards compatibility of course. New programers will look at this and go for the full ARC language which is easier or go to C/C++ if they want performance and lots of libraries/resources.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">New users might not care about backwards compatibility, but existing ones do. We are not helping us if we scare away many existing users to get a few new ones. If they want ARC/GC or high performance then those users should simply go somewhere. One can't cater to everyone and thus we should stick with what made Pascal strong, not chasing after some dreams. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>