<p dir="ltr">Again from the other thread. The are a few problems with mangling the type;<br>
It breaks when you need to interact with libraries.<br>
It's incompatible with struct alignment, and changes the struct size. These are very carefully managed properties of structures.<br>
It obscures/complicates generic code.<br>
It doesn't deal with circular references, which people keep bringing up as a very important problem.</p>
<p dir="ltr">What happens when a library receives a T* arg? Micro managing the ref-count at library boundaries sounds like a lot more trouble than manual memory management.</p>
<div class="gmail_quote">On 10 Oct 2013 05:20, "Walter Bright" <<a href="mailto:newshound2@digitalmars.com">newshound2@digitalmars.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 10/9/2013 7:30 AM, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ARC. I've been here years now, and I see absolutely no evidence that the GC is<br>
ever going to improve. I can trust ARC, it's predictable, I can control it.<br>
Also, proper support for avoiding the GC without severe inconvenience as<br>
constantly keeps coming up. But I don't think there's any debate on that one.<br>
Everyone seems to agree.<br>
</blockquote>
<br>
I think we can get pretty close to ARC by using RefCounted, but you've indicated you disagree.<br>
<br>
(Note that ObjC does not have a template system, and so using a library system was not possible for ObjC.)<br>
</blockquote></div>