SourceForge has been redesigned. Learn more.
Close

#30 READNEXT does not require THEN/ELSE clause

closed-works-for-me
None
5
2001-04-17
2000-12-28
Anonymous
No

Apparantly at least some variants of Pick do not require a THEN or an ELSE clause and can just rely on the return value. An example exists in the LED editor:

LOOP WHILE READNEXT ID DO
IDLIST<-1> = ID
REPEAT

Discussion

  • Robert Colquhoun

    • assigned_to: nobody --> rjc
     
  • Robert Colquhoun

    This particular case should work at the moment.

    In the basic grammer there is a special rule which allows READNEXT(in fact any of the onerr/then/else statements to exist within a WHILE or UNTIL conditional within a LOOP or FOR statement.

    At the moment both the java source and byte code tree walkers only can handle READNEXT in that location though it should not be too difficult to add other statements.

     
  • Robert Colquhoun

    • status: open --> closed-works-for-me
     

Log in to post a comment.