On Sat, 04 Oct 2014 05:22:10 +0000 Ola Fosheim Grostad via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
> >> Should or should not, you have to make do with what you get > >> from libraries. > > wrapper is the answer. > I dont disagree, but the language spec says that you cannot catch > in a finally block... (which is the same as scope(exit). and... wrapper is the answer! ;-) void myWrapper () nothrow { try throwItAtMe(); catch (LovelyException) {} } scope(exit) myWrapper(); this is perfectly legal, as we not cathcing anything in scope(exit).
signature.asc
Description: PGP signature