× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.