Re: Iterate before loop end

From: Duane Bozarth (dp_bozarth_at_swko.dot.net)
Date: 10/22/04


Date: Fri, 22 Oct 2004 10:12:51 -0500

Top Spin wrote:
>
> On Thu, 21 Oct 2004 23:08:07 -0700, Bob O`Bob
> <filterbob@yahoogroups.com> wrote:
>
> >Top Spin wrote:
> >
> >> Here's my sample code. I would appreciate some help in what I can do
> >> at line 13. I don't want to do the error testing at the top because it
> >> changes and I am already doing it in the individual Case statements.
> >
> >
> >Well, *I* would simply use a GoTo.
>
> I did consider GoTo, just for a moment, but you know what that leads
> to...

Yeah, in this instance, an optimal solution...no overhead of extra
variable or logic tests and still linear code execution path in the
source...seems, given the limitation of the language, to be the
<correct> solution (imo, of course, ymmv).

Sometimes, abstinence <isn't> a virtue... :)



Relevant Pages

  • Re: Iterate before loop end
    ... >> I did consider GoTo, just for a moment, but you know what that leads ... >Yeah, in this instance, an optimal solution...no overhead of extra ...
    (microsoft.public.vb.general.discussion)
  • Re: regarding "goto" in C
    ... using it leads to either clearer code or faster code. ... This rule alone is sufficient to make the use of goto fairly uncommon in my code to the point of "spaghetti code" never being an issue. ... (If there's one exception it would have to be parsers -- but in those cases even the cleanest control structures don't actually lead to a clearer representation of the parser.) ...
    (comp.lang.c)
  • Re: regarding "goto" in C
    ... > I personally follow only one rule regarding goto: ... > using it leads to either clearer code or faster code. ... I've never had to use a goto in a parser; ...
    (comp.lang.c)
  • Re: I need the fastest routine
    ... ah yeah, spotted that one too, but forgot about it:P ... (single core): ... because you can't compensate for the overhead of threading. ...
    (borland.public.delphi.language.basm)
  • Re: 4e - return of the golf bag
    ... Yeah. ... This leads me to suspect that we may NEVER have been playing the same ...
    (rec.games.frp.dnd)

Quantcast