Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news4.ner.bbnplanet.net!news.ner.bbnplanet.net!news.mathworks.com!news.kei.com!nntp.coast.net!torn!news!kassabo
From: kassabo@uwindsor.ca (Kassabov  Alexandr)
Subject: Smalltalk newbie needs little help
X-Nntp-Posting-Host: server.uwindsor.ca
Message-ID: <DnBF32.Hpn@news.uwindsor.ca>
Sender: news@news.uwindsor.ca (Usenet)
Organization: University of Windsor
Date: Sun, 25 Feb 1996 04:57:02 GMT
Lines: 20


I am just beginning to learn Smalltalk.  I am using a book and one of the 
examples does not work the way the author promises it to.  The example 
relates to short-circuit operators that ignore the message parameter if 
the result can be determined solely from the receiver.
Examples:
true and: (?) => don't know (depends on ?)
false and: (?) => false (both must be true for the result to be tru; ? is 
irrelevant)

Myself, when I try this, I get
"missing expression".
Smalltalk refuses to recognize the "?" as anything.
Why?  Should it work in principle?

Thank you for any help.

Alex.


