[BUG;FIX]

Randal L. Schwartz merlyn at stonehenge.com
Tue Dec 21 15:25:34 UTC 1999


>>>>> "Stephan" == Stephan Rudlof <sr at evolgo.de> writes:

Stephan> I don't know how to write this construct more elegantly in C; 'do {}
Stephan> while()' doesn't help.

If we ever complete the "PerlCodeGenerator", that'd be:

        {
                exp1;
                last unless condition;
                exp2;
                exp3;
                redo;
        }

Hey wait, that translates to C just fine:

        while (1) {
                exp1;
                if (!(cond)) { break; }
                exp2;
                exp3;
        }

How about giving that a go?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!





More information about the Squeak-dev mailing list