Opaque handles...

Manu turkeyman at gmail.com
Thu Sep 19 18:58:21 PDT 2013


On 19 September 2013 02:23, Andrej Mitrovic <andrej.mitrovich at gmail.com>wrote:

> On 9/18/13, Manu <turkeyman at gmail.com> wrote:
> > But since I'm always dealing with a pointer rather than a real type, I
> > can't implement logic to inc/dec the ref-count on assignment. And how do
> I
> > handle destruction/garbage collection?
>
> Ah I see, well you could try using RefCounted from std.typecons.
>

I don't see how RefCounted does the job. It wants to allocate for me, and
offers no customisation of the inc/def-ref functions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130920/446098b4/attachment.html>


More information about the Digitalmars-d mailing list