I just found this and I'm sure other languages must have this
capability, but I've never seen/used it.
------------------------------------------
def MYWHILE(cond)
   return if not cond
   yield
   retry
end

i = 0

MYWHILE(i < 10) {
   printf "i is: %d\n", i
   i += 1
}
------------------------------------------
OUTPUT
======
i is: 0
i is: 1
i is: 2
...

Man that's cool.  Can anyone tell me some other ways to exploit
yield/retry?


Sent via Deja.com http://www.deja.com/
Before you buy.