From: Logan Capaldo Date: 2006-09-06T12:48:54+09:00 Subject: Re: One line infinite for loop in Ruby? On Sep 5, 2006, at 11:26 PM, Devin Mullins wrote: > > ...wait. Why are we doing this? And why are we disallowed from > using loop{}? Okay, here's another: > alias repeat loop; repeat{} > Or: > (1..1.0/0)..each{} > How about: > callcc{|$cc|};$cc[] > > Shall I continue, Anil? > Devin > Heres another one: (a = lambda { a.call }).call Of course this is one infinite loop that will probably terminate.