Knowledge of managed memory pointers

Manu via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 17 05:39:49 PDT 2014


On 17 April 2014 18:20, Kagamin via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:

> You can do anything, what fits your task, see RefCounted and Unique for an
> example on how to write smart pointers.
>

... what?

I don't think you understood my post.

void f(void* ptr)
{
  // was ptr allocated with malloc, or new?
}

If we knew this, we may be able to address some problems with designing
better GC's, or cross-language API's.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140417/3b20ee7b/attachment.html>


More information about the Digitalmars-d mailing list