"A" <a@a.a> wrote in news:m4lj5n$m3i$
1...@gregory.bnet.hr:
> In this particular example:
>
> try
> {
> return i;
> }
> __finally
The C++ standard does not contain word "__finally". The identifiers
containing double underscores are reserved for implementations, so this is
most probably some kind of extension provided by your particular C++
implementation (and if I am not mistaken, it is probably meant to be used
together with __try, not try). Maybe it would work better with __try, who
knows.
The "finally" thing is used as a poor substitute for RAII in languages
which are lacking it. In C++ we have RAII and proper destructions (and
things like ScopeGuard if one is too lazy to write a helper class with a
destructor), so it baffles me why somebody would ever need functionality of
"finally" in C++, it is just inferior in every sense IMO.
Cheers
Paavo