Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!oitnews.harvard.edu!purdue!news.bu.edu!bloom-beacon.mit.edu!apollo.hp.com!lf.hp.com!news.dtc.hp.com!col.hp.com!usenet.eel.ufl.edu!news.mathworks.com!news.kei.com!nntp.coast.net!torn!nott!cunews!dbuck
From: dbuck@superior.carleton.ca (Dave Buck)
Subject: Re: st/v 2.0 mac  please help with apparent bug in Boolean class.
X-Nntp-Posting-Host: superior.carleton.ca
Message-ID: <DJyHI1.E1K@cunews.carleton.ca>
Sender: news@cunews.carleton.ca (News Administrator)
Organization: Carleton University, Ottawa, Canada
References: <4bbtqo$dg6@newsbf02.news.aol.com>
Date: Thu, 21 Dec 1995 21:39:37 GMT
Lines: 30

In article <4bbtqo$dg6@newsbf02.news.aol.com>, JALOTTA <jalotta@aol.com> wrote:
>
>| ok |
>
>ok := False.
>
>( ok ) ifFalse: [ Transcript print: 'false'; cr.]
>
><<Walkback  -- receiver is not a Boolean>>

Smalltalk is case sensitive.  Use 'true' and 'false' not 'True' and
'False'.  'true' is an instance of class 'True' and 'false' is an
instance of class 'False'.  Your code above should read:

| ok |
ok := false.
(ok) ifFalse: [Transcript print: 'false';cr]

No patches necessary :=).  BTW, if there was a bug like this in
Booleans, there would have to be a massive recall and, in fact,
nothing in the system would work properly.

David Buck
dbuck@ccs.carleton.ca

_________________________________
| David K. Buck                 |
| dbuck@ccs.carleton.ca         |
| The Object People             |
|_______________________________|
