Hi all,
I know there was a lot of discussion about try/catch, but I will bring it up
again:
What about finally ?
I know someone posted that finally isn't necessary since PHP destroy all
variables and releases all resources at the end of the script. But if the
script is a PHP-GTK application or a standalone server aplication (like
CORBA)?
Finally is very useful in situations where you must be certain that some
piece of code will be executed no matter what happens (a normal execution, a
return statement or an exception).
IMHO I think that an implementation start would be hooking the function exit
at the engine..
Cristiano Duarte
Please, ignore this:
IMHO I think that an implementation start would be hooking the function
exit
at the engine..
And read this instead:
IMHO I think that an implementation start would be hooking the exit of the
try statement even if its normal or has an exception thrown...
Best regards,
Cristiano Duarte
"Cristiano Duarte" cunha17@uol.com.br escreveu na mensagem
news:20030806001540.7978.qmail@pb1.pair.com...
Hi all,
I know there was a lot of discussion about try/catch, but I will bring it
up
again:What about finally ?
I know someone posted that finally isn't necessary since PHP destroy all
variables and releases all resources at the end of the script. But if the
script is a PHP-GTK application or a standalone server aplication (like
CORBA)?Finally is very useful in situations where you must be certain that some
piece of code will be executed no matter what happens (a normal execution,
a
return statement or an exception).IMHO I think that an implementation start would be hooking the function
exit
at the engine..Cristiano Duarte
Hello Cristiano,
Wednesday, August 6, 2003, 6:15:39 AM, you wrote:
It would be much better if user will have to put method's throws in
method's declaration imho( see my reply to Marcus ).
--
Best regards,
Simeon mailto:xi@newmail.ru