Lots of fixes to object destruction.
authorDave Rolsky <autarch@urth.org>
Fri, 11 Sep 2009 18:41:54 +0000 (13:41 -0500)
committerDave Rolsky <autarch@urth.org>
Fri, 11 Sep 2009 18:41:54 +0000 (13:41 -0500)
commitb288593e2645b63d85032aba905744a6ba165758
tree5d09588892329750fa40401a6a4f4fd0f265a88f
parent6eff32cb0a932c52b0f65e9fbbcc99508cb734d1
Lots of fixes to object destruction.

$@ is now always localized, but errors in DEMOLISH are always rethrown.

$? is always localized in DESTROY

There are tests for the in_global_destruction flag for immutabilized classes,
this was not being passed previously.

Added more docs on object destruction, mostly on error handling.
Changes
lib/Moose/Manual/Construction.pod
lib/Moose/Meta/Method/Destructor.pm
lib/Moose/Object.pm
t/010_basics/020-global-destruction-helper.pl
t/010_basics/020-global-destruction.t
t/100_bugs/012_DEMOLISH_eats_mini.t