Don Wrote: > LMB wrote: > > [...] > > So, is there any complete example on how to implement reference counting in > > D2? > > I don't think so. While trying to do it, Bartosz found some severe bugs > in D which made it impossible; they were fixed in the last release. > He's since found bug 3516 might still prevent a complete implementation.
Great! This bug 3516 ("Destructor not called on temporaries") was, er, bugging me too. Good to know that my lack of knowledge of D is not the only reason I could not make my code work. :-) Thanks for the answer!