--nextPart6451905.Bn14HmLVRK Content-Type: text/plain; charset so-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline quoth the Harold Hausman: > On 9/5/06, Anil Wadghule <anildigital / gmail.com> 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 Python: while 1: pass > hth, > -Harold -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - 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 adkoz2j2IXLUByIaaful8ng0iZ -----END PGP SIGNATURE----- --nextPart6451905.Bn14HmLVRK--