Count of object references?

Bottled Gin gin at bottled.com
Sun Aug 25 08:18:49 PDT 2013


Hello All

Given a class object, is there a way to find out the number of 
references to it. I have a situation where a container is holding 
an object and I would like to remove the object from the 
container if there is nobody else referencing it.

Is it possible in D?

Regards
- Puneet


More information about the Digitalmars-d mailing list