Today I had a while loop that really needed to be a do while loop.
while (alice) {
charlie;
last if bob;
david;
}
where alice, bob, charlie and david are apropriate subroutines
Doing a simple transformation to
do {
charlie;
last if bob;
david;
} while (alice);
does not compile, since the
do does not know anything about the
while.
There are certainly lots of ways to fix this, but I thought that there might be an eligant approach that I have not though of.
-- gam3
A picture is worth a thousand words, but takes 200K.