From: Matt White Date: 2007-09-07T04:15:23+09:00 Subject: Re: Is this a bug or a feature? --0-1386342393-1189106116=:66971 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable That's the behavior I would expect it to have. Why wouldn't you do:=0A=0Air= b(main):001:0> i =3D 1=0A=3D> 1=0Airb(main):002:0> until i > 5=0Airb(main):= 003:1> p i=0Airb(main):004:1> i +=3D 1=0Airb(main):005:1> end=0A1=0A2=0A3= =0A4=0A5=0A=0Ainstead?=0A=0A----- Original Message ----=0AFrom: Martin Jans= son =0ATo: ruby-talk ML =0A= Sent: Thursday, September 6, 2007 1:00:28 PM=0ASubject: Is this a bug or a = feature?=0A=0Airb(main):002:0> i=3D1=0A=3D> 1=0Airb(main):003:0> until (i+= =3D1)>5=0Airb(main):004:1> p i=0Airb(main):005:1> end=0A2=0A3=0A4=0A5=0A=3D= > nil=0Airb(main):006:0> RUBY_VERSION=0A=3D> "1.8.3"=0A=0AThe condition is = evaluated before the first iteration.=0A=0AAt least it's consistent:=0A=0Ai= rb(main):005:0> i =3D 1=0A=3D> 1=0Airb(main):006:0> p i until (i+=3D1)>5=0A= 2=0A3=0A4=0A5=0A=3D> nil=0A=0AI think it makes "until" less useful. Why wou= ld anyone want this?=0A-- =0APosted via http://www.ruby-forum.com/.=0A=0A= =0A=0A=0A=0A=0A=0A=0A ________________________________________________= ____________________________________=0AFussy? Opinionated? Impossible to pl= ease? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylin= k.yahoo.com/gmrs/yahoo_panel_invite.asp?a=3D7 =0A --0-1386342393-1189106116=:66971--