Reference counting for resource management

2009-11-27 Thread LMB
--(*refCount_); if (*refCount_ == 0) { free(refCount_); refCount_ = null; immutable status = sqlite3_close(db_); } } } private sqlite3* db_; private uint* refCount_; } Thanks! LMB

Re: Reference counting for resource management

2009-11-29 Thread LMB
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 l