in reply to Re: Re: Are array based objects fixed length?
in thread Are array based objects fixed length?
Yes it will be :-)
Maybe you could insert a DESTROY method into the targeted object, possibly aliasing any existing ones, and do the cleanup there?
Something like:
if (ClassName->can('DESTROY') { *ClassName::OLD_DESTROY = \&ClassName::DESTROY; *ClassName::DESTROY = sub { cleanup_object($_[0]); goto &$_[0]->DESTROY; } } else { *ClassName::DESTROY = \&cleanup_object($_[0]); }
Update: this will not get you the object id... hmmm...
Joost frowns, going to get another cup of coffee
-- Joost downtime n. The period during which a system is error-free and immune from user input.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Are array based objects fixed length?
by pdcawley (Hermit) on Jul 26, 2002 at 11:19 UTC | |
by Felonious (Chaplain) on Jul 28, 2002 at 20:53 UTC | |
by pdcawley (Hermit) on Jul 29, 2002 at 11:42 UTC |