<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 17 April 2014 18:20, 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">You can do anything, what fits your task, see RefCounted and Unique for an example on how to write smart pointers.<br>
</blockquote></div><br></div><div class="gmail_extra">... what?</div><div class="gmail_extra"><br></div><div class="gmail_extra">I don't think you understood my post.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
void f(void* ptr)</div><div class="gmail_extra">{</div><div class="gmail_extra"> // was ptr allocated with malloc, or new?</div><div class="gmail_extra">}</div><div class="gmail_extra"><br></div><div class="gmail_extra">
If we knew this, we may be able to address some problems with designing better GC's, or cross-language API's.</div></div>