Menu

#98 do while

closed-fixed
None
1
2002-08-06
2002-07-14
No

first of all this is not a language construct I use
(obviously, since I'm using jalopy for it ;)) )

do
val = in.read();
while( val == (int)'\n' || val == (int)'\r' );

became:

doval = in.read();
while( val == (int)'\n' || val == (int)'\r'

after that the compiler complained about unknown
variable doval ;))

the work around is NOT to use

do
statement;
while( expr );

but:

do
{
statement;
} while( expr );

but if you get imported/foreign sources you are
ofcourse not in control of what you receive ;(

Discussion

  • Marco Hunsicker

    Marco Hunsicker - 2002-07-15

    Logged In: YES
    user_id=44430

    The next beta will treat both cases correct.

    Thanks.
    Marco

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-07-15
    • assigned_to: nobody --> marcohu
     
  • Marco Hunsicker

    Marco Hunsicker - 2002-07-28
    • priority: 5 --> 1
     
  • Marco Hunsicker

    Marco Hunsicker - 2002-08-06
    • status: open --> closed-fixed
     

Log in to post a comment.