<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 18 April 2014 04:10, Kagamin via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Thursday, 17 April 2014 at 12:39:59 UTC, Manu via Digitalmars-d wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
void f(void* ptr)<br>
{<br>
  // was ptr allocated with malloc, or new?<br>
</blockquote>
<br></div>
Then what?<br>
</blockquote></div><br></div><div class="gmail_extra">Whatever. inc/dec ref, or not. core.memory.addRoot/Range, or not. That sort of thing.</div><div class="gmail_extra"><br></div><div class="gmail_extra">There's a persistent problem  when dealing with memory systems in D that it must remain backward compatible with C and raw pointers, and that creates complications.</div>
</div>