|
Yeah, but While ( x != NULL ) { // do something here }; also works in C/C++. Not sure about Java. -----Original Message----- From: Bob Cozzi (RPGIV) [mailto:cozzi@rpgiv.com] Funny you mention the DO(While) vs DO(Until) thing. You still see, even today, style guides that say "Do not use Do While loops" but what the RPG coders that assimilate this mentality don't seem to realize is, in the language (such as Java or C) for which the "style guide" was written, they do NOT have DOW and DOU operation codes. They have: Do { // insert code to run here; } while ( x != NULL) So what they're talking about is that a programmer can easily miss the fact that the above code is a DO/WHILE loop instead of a do loop. Actually this translates to a DO UNTIL (DOU) in RPG. Bob Cozzi cozzi@rpgiv.com Visit the on-line Midrange Developer forum at: http://www.rpgiv.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.