Re: Looking for a way to convert dec to bin

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Robert Morley" <rmorley@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:O6x6RUOYHHA.2316@xxxxxxxxxxxxxxxxxxxxxxx
Hehehe. I have no objection to the idea at all; I just learned a certain
rigidity, and despite bitching about it at the time, have found that it
works for me in general. I also don't randomly jump out of loops with
things like Exit Do or Exit For. They're effectively a form of GoTo,

Not really. What makes goto so bad is that you can use it to jump *into*
loops and hence violate the flow of the code (not sure of the technical term
here). Using Exit For etc you can only jump out of loops.

and like Pascal taught, I find they're absolutely never necessary (and
only very rarely even useful) once you wrap your mind around doing without
them. Like I said, Pascal influenced my programming style significantly.
:)

How do you search for something in a list and stop the search when you find
it?

Michael


.



Relevant Pages

  • Re: Try/Finally the only way to Exit nested For loops?
    ... cleaner alternative for nested loops. ... GoTo is probably the worst way of doing this ... ... If j = 10 Then Exit For To AllDone ... You can change the outer loops from for loops to repeat or while loops, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: return command
    ... I think I agree with that (in regard to loops) but not quite to that extent ... i.e. there's nothing worse than goto. ... exit is just as evil as goto IME). ...
    (borland.public.delphi.non-technical)
  • Re: Fortran Lesson: Are these equivalent?
    ... if goto 100!--- This is wrong. ... Because this is a jump into the inner ... The 100 counts as being in both loops. ... It is non-compliant (and lots of compilers will refuse to compile ...
    (comp.lang.fortran)
  • Re: Are gotos truly evil?
    ... > I have never used a goto statement in my code, ... When programmers were first making programs without functions, ... you had to jump to where you wanted to go and jump back to ... One exit point. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: continue
    ... > Is there any other solution besides resorting to using goto? ... multiple embedded loops. ... jump into other functions. ...
    (comp.lang.cpp)