Hello,
I'm trying to make a pool of managed resources. At the start-of-day, the pool is filled with a number of object instances. A client can retrieve an object instance from the pool, and I have a mixin class that overides destroy to automatically returns the instance to the pool upon destruction.
The objects are all initially created as children of the pool, and it was my intent to have an acquiring object take ownership of the instance by move'ing the instance into itself. However, it seems that move'ing an object invokes the destroy method, which then triggers my mixin and returns it to the pool.
It seems that move shouldn't destroy the object, as it's only renaming it. Is this the intended behavior? Would anything bad happen if, instead of move'ing the instance, I were to use Tcl's rename command to move the object? Is there a better way to get where I'm trying to go?
Scott
BTW, I notice there's not much activity on this mailing list. XOTcl's object model is sufficiently new to me that I've got lots of questions on the "right" way to do things, but I hate to be filling up everyone's mailbox. Is there a more appropriate place to be asking questions?