Negative

Andrew Fedoniouk news at terrainformatica.com
Mon Feb 27 10:42:10 PST 2006


I am with Charles here...

I don't understand why
on_scope_failure & co. are significantly better than
try catch finally?

What is wrong with them?

Semantically try-catch-finally are well known and
widely recognizable constructions.

BTW: Am I right in my assumption that
proposed on_scope_exit / on_scope_success / on_scope_failure
is a direct equivalent of the following:

try
{
   [scope code]
   my_on_scope_success().
}
catch(...)
{
   my_on_scope_failure().
}
finally {
  my_on_scope_exit().
}

If yes then again what it wrong with them in principle?


Andrew.
http://terrainformatica.com














More information about the Digitalmars-d mailing list