Make sure users are properly notified of (useless) exceptions in finally blocks
authorPeter Rabbitson <ribasushi@cpan.org>
Thu, 4 Jul 2013 08:25:02 +0000 (10:25 +0200)
committerPeter Rabbitson <ribasushi@cpan.org>
Thu, 4 Jul 2013 08:47:45 +0000 (10:47 +0200)
commit5f5e92c0e36725a449c010c445eba40589ac8bf6
tree24a90411d1b9a75301b93290b7f692acca02a14f
parentae5ed1be9a1184e7895959bc40a29795e6dadf8c
Make sure users are properly notified of (useless) exceptions in finally blocks

It is possible to rewrite Try::Tiny to invoke the finally blocks without
the use of scope guards, however to do this an extra eval frame around
catch will have to be introduced. Furthermore code in the wild may rely
on the "ignorance" of a finally() exception.

In short - the proper fix may no longer be feasible due to backcompat
issues, therefore the current warning seems like the only feasible
compromise.
Changes
lib/Try/Tiny.pm
t/finally.t