Re: RecyclerMM, Goto Label usage
From: Arthur Hoornweg (arthur.hoornweg_at_wanadoo.nl.net)
Date: 06/21/04
- Next message: Eric Grange: "Re: RecyclerMM, Goto Label usage"
- Previous message: Arthur Hoornweg: "Re: Fastcode Library Page"
- Next in thread: Eric Grange: "Re: RecyclerMM, Goto Label usage"
- Reply: Eric Grange: "Re: RecyclerMM, Goto Label usage"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 21 Jun 2004 11:09:25 +0200
Eric Grange wrote:
> It's there for two reasons: to make the compiled code more compact,
> and more importanly, to have only one exit point, one place where
> the cleanup occurs
Then why not use the following, it is "cleaner":
Procedure dosomething;
begin
TRY
...
place your code here. Any "Exit" will jump to the
"finally" block rather than exiting the procedure
and thus perform a nice cleanup.
...
Finally
cleanup here
end;
end;//proc
-- Arthur Hoornweg (please remove the ".net" from my e-mail address)
- Next message: Eric Grange: "Re: RecyclerMM, Goto Label usage"
- Previous message: Arthur Hoornweg: "Re: Fastcode Library Page"
- Next in thread: Eric Grange: "Re: RecyclerMM, Goto Label usage"
- Reply: Eric Grange: "Re: RecyclerMM, Goto Label usage"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|