Jeff Rose wrote:
> Tim Hunter wrote:
>> Jeff Rose wrote:
>>> Is there a way to get the current reference count for an object?
>>
>> AFAIK Ruby doesn't keep track of the reference count. If you're 
>> coming from Python, keep in mind that Ruby uses a mark-and-sweep GC, 
>> which is fundamentally different from Python's.
>>
>
> Aha.  Didn't think about that.  Are there callbacks or anything you 
> can use to implement reference counting without having to use special 
> methods for referencing an object?
>
>
>
Why don't you describe what it is you're trying to do?