Subject: | make DEMOLISH works, when object instantiated with bless |
Hi.
Sometimes I am using direct bless call instead of ->new for speed. But in this case DEMOLISH method is not called on object destruction.
Is it possible to move demolish generator from the ->new method to package execution phase?
I don't think, that this will add large overhead, as you wrote in documentation. Much more overhead - is to use ->new each time, when it is not needed.