From: "Berger, Daniel" Date: 2006-04-11T22:51:50+09:00 Subject: Re: Smalltalk's favorite Boolean method > -----Original Message----- > From: Berger, Daniel [mailto:Daniel.Berger@qwest.com] > Sent: Tuesday, April 11, 2006 7:46 AM > To: ruby-talk ML > Subject: Re: Smalltalk's favorite Boolean method > > > > CONTENT_TYPE_PRESENT,MIMEQENC,QENCPTR1,RCVDFRMLOCALIP,THREAD_INDEX, > THREAD_TOPIC autolearn=disabled version=3.0.3 > Mime-Version: 1.0 > Content-Type: text/plain; > charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > Precedence: bulk > Lines: 31 > List-Id: ruby-talk.ruby-lang.org > List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] > List-Post: > List-Owner: > List-Help: > List-Unsubscribe: > > > > -----Original Message----- > > From: list-bounce@example.com=20 > [mailto:list-bounce@example.com] On > >Behalf Of Ernest Micklei > > Sent: Tuesday, April 11, 2006 7:13 AM > > To: ruby-talk ML > > Subject: Smalltalk's favorite Boolean method > >=20 > >=20 > > Hi, > >=20 > > For a long time I have been programming Smalltalk. > > Recently, Ruby "got me" and I was wondering how the > > famous ifTrue:ifFalse: could be added to the System. > >=20 > > 1 =3D 2 > > ifTrue: > > [Transcript show: "true!" ] > > ifFalse: > > [Transcript show: "false!"] > > How is this effectively different than: > > if 1 =3D=3D 2 > puts "true!" > else > puts "false!" > end > > ??? > > Dan What the heck? How did this get so mangled? Dan