On 18 April 2014 04:10, Kagamin via Digitalmars-d < [email protected]> wrote:
> On Thursday, 17 April 2014 at 12:39:59 UTC, Manu via Digitalmars-d wrote:
>
>> void f(void* ptr)
>> {
>> // was ptr allocated with malloc, or new?
>>
>
> Then what?
>
Whatever. inc/dec ref, or not. core.memory.addRoot/Range, or not. That sort
of thing.
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.
