From: nobu.nokada@... Date: 2003-12-02T14:38:12+09:00 Subject: Re: anything disappearing from Ruby for 2.0? Hi, At Mon, 1 Dec 2003 23:36:25 +0900, Carlos wrote: > Hi :) Here's another idea: > > 1) Make #.. a method (Integer#.. creates ranges, for example) > > 2) Make a shortcut to proc {...} (maybe "&{"? Anything, I don't know) > > 3) Define Proc#.. to work as a flip-flop > > 4) while &{ line =~ /abc/ }..&{ line =~ /def/ } This needs a hidden flip-flop variable, otherwise matching /abc/ will be performed each time. Of course, you can do it like this, but, hmmmm... (&{ line =~ /abc/ }..&{ line =~ /def/ }).while do # ... end -- Nobu Nakada