From: darren kirby Date: 2006-09-06T11:51:46+09:00 Subject: Re: One line infinite for loop in Ruby? --nextPart6451905.Bn14HmLVRK Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline quoth the Harold Hausman: > On 9/5/06, Anil Wadghule wrote: > > Hi all, > > > > How to write one line infinte for loop in Ruby? > > I don't want loop{}. > > How about: > while 1 do puts "OMG" end I have been wondering, is there a no-op in Ruby? Then you could do like in= =20 Python: while 1: pass > hth, > -Harold =2Dd =2D-=20 darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." =2D Dennis Ritchie and Ken Thompson, June 1972 --nextPart6451905.Bn14HmLVRK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBE/jegwPD5Cr/3CJgRAoXaAKC7loN7BmWQ+c/cOp4jhRQ7Ne2j1QCgowRz adkoz2j2IXLUByIaaful8ng= =3GiZ -----END PGP SIGNATURE----- --nextPart6451905.Bn14HmLVRK--