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



On Wed, 27 Feb 2002, Bob Cozzi (RPGIV) wrote:

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

In C you can also code:

while (condition)
{
        do you stuff...
}

which is the equivalent of RPG's DO WHILE (DOW).  In my experience this
type of while statement is more common.

James Rich
james@eaerich.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.