On 19 September 2013 02:23, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:
On 9/18/13, Manu <turkeyman@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.