Knowledge of managed memory pointers
Manu via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 17 17:01:03 PDT 2014
On 18 April 2014 04:10, Kagamin via Digitalmars-d <
digitalmars-d at puremagic.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140418/c94ac8fa/attachment-0001.html>
More information about the Digitalmars-d
mailing list