http://qs321.pair.com?node_id=509658


in reply to Re: Array-based Inside-out Objects with Object::InsideOut
in thread Array-based Inside-out Objects with Object::InsideOut

Array indices (object IDs) are generate by sequences (starting with 1). There is one sequence for each class tree.

When an object is destroyed, it's ID is reclaimed as part of the DESTROY subroutine. Reclaimed ID are maintained in a queue, one per class tree. Reclaimed IDs are doled out first, of course.


Remember: There's always one more bug.