in reply to Re: "last" not really outside loop block
in thread "last" not really outside loop block

Try to use a normal while loop instead.

I kind of need the post-condition and while only gives me pre-condition

  • Comment on Re^2: "last" not really outside loop block

Replies are listed 'Best First'.
Re^3: "last" not really outside loop block
by mscharrer (Hermit) on Jun 22, 2009 at 15:59 UTC
    Try the follwing:

    Instead of:

    do { ... } while (expr);
    use:
    while (1) { ... last unless (expr); }