The second thing that you can do is have your constructor return a wrapper that is a reference to the real object. This wrapper will then go away properly and you can have it properly destroy the underlying argument in its DESTROY method. This does force an extra layer of indirection though.
In reply to Re (tilly) 1: Allowing object destruction even with an
by tilly
in thread Allowing object destruction even with an
by Fastolfe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |