Re: Tasty exceptions
- From: "Craig Stuntz [TeamB]" <craig_stuntz@xxxxxxxxxxxxx [a.k.a. acm.org]>
- Date: 30 Jun 2006 11:48:57 -0700
Michael C. wrote:
I was under the impression that some people here believed using a
generic try-except-end statement was a very bad idea.
Well, to be clear, this example which you posted is IMHO a very bad
idea, for reasons I explain elsewhere in this thread:
Function TrySomething : boolean;
begin
result := false;
Try
SomeCallThatMightProduceAnException;
// ...
result := true;
Except
end;
end;
I hope that removes the ambiguity.
--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Borland newsgroup denizen Sergio González has a new CD of
Irish music out, and it's good: http://tinyurl.com/7hgfr
.
- References:
- Tasty exceptions
- From: Blackbird Crow Raven
- Re: Tasty exceptions
- From: Nick Hodges (Borland/DevCo)
- Re: Tasty exceptions
- From: Arthur Hoornweg
- Re: Tasty exceptions
- From: Jon Robertson
- Re: Tasty exceptions
- From: Craig Stuntz [TeamB]
- Re: Tasty exceptions
- From: Michael C.
- Re: Tasty exceptions
- From: Jon Robertson
- Re: Tasty exceptions
- From: Michael C.
- Tasty exceptions
- Prev by Date: Re: Tasty exceptions
- Next by Date: Re: Tasty exceptions
- Previous by thread: Re: Tasty exceptions
- Next by thread: Re: Tasty exceptions
- Index(es):
Relevant Pages
|
|