Reference counting with fat pointers

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 25 14:00:58 PDT 2014


Looks like I got the core logic working.

The scheme takes advantage of D type system and distinction 
between shared and unshared data to decide on interlocked 
reference counting at compile time. Unshared mutable data and 
shallow shared data (like strings) are counted with the fastest 
possible non-atomic arithmetic. Cycles should be handled by the 
user, see an example at the end. Language interface is not 
considered, assess if the approach itself is ok.


More information about the Digitalmars-d mailing list