To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / *38865 (-10)
  Re: Are there GOTO statements in NQC?
 
(...) Um, not exactly. Structured programming is about taking a high level problem, breaking it down into logically related modules (using as much reuse as possible) and then breaking those modules down as well, and so on. It's about being cognizent (...) (22 years ago, 21-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
Don't know about C/C++, but IIRC in Java the garbage collector destroys objects not when they are out of scope, nor when their creator function exits. It destroys them when the object is no longer referenced by any threads. That is to say, if (...) (22 years ago, 21-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) I've been coding since about '81, too. Big deal. (...) Well, yes, by transforming it into a while loop with a state variable representing what would otherwise be the execution counter. While this is a provable transformation, it doesn't (...) (22 years ago, 21-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
As a computer science software engineer i work since 1984. My university studies before (Hamburg, Germany) taught me, that science had proved: any program using a goto statement can easily be transformed into a structured program. Remember, that (...) (22 years ago, 21-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) *snicker* I'm surprised you used C as one of your example languages, then. Anyway, not all of us are so lucky as to be able to choose a language where you can hide all your cleanup code like that. As a personal issue, I find such cleanup (...) (22 years ago, 21-Nov-03, to lugnet.robotics)
 
  Re: Ultrasonic proximity sensor
 
(...) back up alarms for dogcatchers and photographers... (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) Which is why we have C++. With memory constructors and destructors, quite complex resources can be automatically and cleanly free'd up on exit from a function. ---...--- Steve Baker ---...--- HomeEmail: <sjbaker1@airmail.net> WorkEmail: (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
Rob Limbaugh wrote: > I find that GOTO is a very handy way to bypass code to test some > alternate code in high-level languages. Nope - that's why we have #ifdef/#endif > It is also a command that is > easy to match to a machine language code of (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Ultrasonic proximity sensor
 
(...) sorry to dissappoint you but i made that up just for a laugh. i'm glad you got a laugh out of it! Michael (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) This exact same argument can be applied to high-level languages where you dynamically allocate memory or other resources that need to be released before leaving the function. While I agree that forcing people to have only one exit point at all (...) (22 years ago, 20-Nov-03, to lugnet.robotics)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR