Menu

#18 Add support for break and continue statements

open
None
5
2007-04-18
2007-04-18
No

Break and continue statements are not supported, neither in Cascade nor in Clepsydra.

Discussion

  • Trevor Harmon

    Trevor Harmon - 2007-04-18

    Logged In: YES
    user_id=720008
    Originator: YES

    Example:

    while (val > 3)
    {
    b = false;
    if (b) break;
    b = true;
    }

     
  • Trevor Harmon

    Trevor Harmon - 2007-04-18

    Logged In: YES
    user_id=720008
    Originator: YES

    Here's another example:

    while (val > 3)
    if (b) break;

    Note that the while loop's goto instruction is lost!

     

Log in to post a comment.