
4 Sep
2012
4 Sep
'12
3:28 a.m.
On Mon, Sep 3, 2012 at 8:02 PM, Sergey Radionov <rsatom@gmail.com> wrote:
2012/9/4 Lorenzo Caminiti <lorcaminiti@gmail.com>:
On Mon, Sep 3, 2012 at 6:37 PM, Sergey Radionov <rsatom@gmail.com> wrote: OK if that's what you need but that's not the problem that ScopeExit is trying to solve to "call a function on scope exit".
I am not try to tell that ScopeExit is useless, just "choose right tool for corresponding work "
Sure, and it's entirely up to you to decide if/when Scope Exit is the right tool for you to use. Keep in mind that the "work" Scope Exit is set to do is to execute arbitrary code on enclosing scope exit. --Lorenzo