On Wed, 28 Nov 2001, Stringer wrote:
> >  goto's have valid reasons for usage, especially with exception
> >  handling.. one of the best lessons i learn when programming is that
>
> Please, please never ever ever ever use 'goto' in a C or
> C++ programming. Have a thousand returns, breaks and continues
> before you ever have a single goto.

  break/continue not nicely available in C :) i love the Java
  break/continue clauses (i assume same works for C++), and,
  if i use a goto, its to replicate what these do :)

  i haven't tried a labeled break/continue in standard C.. so,
  have no idea if it works.. if it does, then, i can replace
  all my 'goto' statements with 'break' :P

  and, oh boy.. you surely dont want to see some of the goto
  type branches we have in the z80 emulator in liberty :P now,
  THAT is spaghetti code :) heh - but, do it only for speed!

// az
[EMAIL PROTECTED]
http://www.ardiri.com/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to