On 10/11/11, bearophile <bearophileh...@lycos.com> wrote:
> Andrej Mitrovic:
>
>> I think this is what refcounted structs are for.
>
> "ref structs" are regular heap-allocated GC-managed structs, but they are
> managed by reference instead of by pointer. So refcounting is not
> significant here.

But can't you just make a wrapper struct that GC-allocates an internal
struct and uses subtyping and refcounting?

Reply via email to