Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 2 > Re: Via Free pa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 15 Topic 321 of 382
Post > Topic >>

Re: Via Free pascal ...

by "JP2R" <jp-dezaire@[EMAIL PROTECTED] > Feb 9, 2007 at 06:40 AM

On 9 f=E9v, 09:51, Marco van de Voort <mar...@[EMAIL PROTECTED]
> wrote:
> On 2007-02-08, JP2R <jp-deza...@[EMAIL PROTECTED]
> wrote:
>
> >> try..finally ?
>
> > No - finalisation of procs are as finalisation for units - sort of
> > 'cleanup' and shut the doors
> > before leaving
> > This finalisation part can have an 'except' part, but not necessarily.
>
> try finally does the same thing when put over the entire procedure, and
> sysutils is hooked so that runtime errors are converted to exceptions:
>
> PROCEDURE xx;
>
> BEGIN
>   try
>    [code]
>   finally
>     [code2]
>     end;
> END;
>
> means simply that [code2] is always run, even if [code] throws an
> exception/runtime error. Unless you mess up the stack *real* bad.

I had not fully understood FPC doc, thanks.
Is this true even if an exit statement is present in [code]
 




 15 Posts in Topic:
Via Free pascal ...
"JP2R" <jp-d  2007-01-29 13:52:26 
Re: Via Free pascal ...
shaimee11@[EMAIL PROTECTE  2007-02-01 06:43:44 
Re: Via Free pascal ...
Christoph Schlegel <ch  2007-02-07 20:37:22 
Re: Via Free pascal ...
Marco van de Voort <ma  2007-02-07 20:13:53 
Re: Via Free pascal ...
Christoph Schlegel <ch  2007-02-08 00:14:35 
Re: Via Free pascal ...
Marco van de Voort <ma  2007-02-08 09:49:01 
Re: Via Free pascal ...
"JP2R" <jp-d  2007-02-08 13:34:08 
Re: Via Free pascal ...
Marco van de Voort <ma  2007-02-08 21:48:41 
Re: Via Free pascal ...
Keith Hopper <asgard@[  2007-02-10 08:45:03 
Re: Via Free pascal ...
"JP2R" <jp-d  2007-02-08 14:16:46 
Re: Via Free pascal ...
Marco van de Voort <ma  2007-02-09 08:51:17 
Re: Via Free pascal ...
"JP2R" <jp-d  2007-02-09 06:40:07 
Re: Via Free pascal ...
Marco van de Voort <ma  2007-02-09 16:36:13 
Re: Via Free pascal ...
"JP2R" <jp-d  2007-02-09 11:14:01 
Re: Via Free pascal ...
"JP2R" <jp-d  2007-02-10 10:56:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 2:20:30 CDT 2008.