<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">>>> I just want to remind you
people (whoever is working on it) that ARC is already implemented
in FPC for interface types and I am personally <br>
>>> satisfited with the way <em>it works now</em> for
interface variables, and only wish that I could enable this
feature for class instance variables. <br>
>>> Can't someone just, you know, Ctrl+C & Ctrl+V it?<br>
<br>
I assume you are talking about ARC for variables/fields of some
class that implements interface?<br>
<br>
Yes me, too!<br>
<br>
Coming from Java I could not even comprehend at the beginning that
if variable type is interface - it is reference counted, but if
variable type is a class that implements interface - it is not ?!<br>
<br>
Regards,<br>
Gena<br>
<br>
On 9/21/2014 2:02 PM, <a class="moz-txt-link-abbreviated" href="mailto:hinstance@yandex.ru">hinstance@yandex.ru</a> wrote:<br>
</div>
<blockquote cite="mid:7012071411322538@web16g.yandex.ru" type="cite">
<p>I just want to remind you people (whoever is working on it)
that ARC is already implemented in FPC for interface types and I
am personally satisfited with the way <em>it works now</em> for
interface variables, and only wish that I could enable this
feature for class instance variables. Can't someone just, you
know, Ctrl+C & Ctrl+V it?<br>
<br>
<br>
21.09.2014, 21:18, "Boian Mitov" <<a moz-do-not-send="true"
href="mailto:mitov@mitov.com">mitov@mitov.com</a>>:</p>
<blockquote> In general I would prefer to see this implemented
with attributes rather<br>
than with new keywords. For god shake, we already have more
keywords in this<br>
language than it is healthy. We should be extremely cautions
when adding new<br>
ones.<br>
That is one of the beauty of the attributes. They can eliminate
a large<br>
number of keywords, and expand the language dynamically (trough
the library<br>
not trough the compiler).<br>
If you implement it with attributes, there is almost no need
for any big<br>
changes in the compiler at least in the parsing side. Adding
new keyword<br>
will probably propagate all the way to the tokenizer.<br>
<br>
With best regards,<br>
Boian Mitov<br>
<br>
-------------------------------------------------------<br>
Mitov Software<br>
<a moz-do-not-send="true" href="http://www.mitov.com/">www.mitov.com</a><br>
-------------------------------------------------------<br>
-----Original Message-----<br>
From: Sven Barth<br>
Sent: Sunday, September 21, 2014 4:12 AM<br>
To: <a moz-do-not-send="true"
href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br>
Subject: Re: [fpc-devel] Suggestion: reference counted objects<br>
<br>
=== code begin ===<br>
<br>
type<br>
TARCObject = class refcounted(TObject)<br>
<br>
end;<br>
<br>
=== code end ===<br>
<br>
=== code begin ===<br>
<br>
type<br>
TSomeClass = class(TARCObject)<br>
// ...<br>
Owner: TSomeClass weak;<br>
// ...<br>
end;<br>
<br>
=== code end ===<br>
<br>
_______________________________________________<br>
fpc-devel maillist - <a moz-do-not-send="true"
href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a></blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fpc-devel maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>