Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornell!travelers.mail.cornell.edu!news.kei.com!news.mathworks.com!news.duke.edu!godot.cc.duq.edu!newsfeed.pitt.edu!gatech!howland.reston.ans.net!torn!nott!cunews!tina.mrco.carleton.ca!knight
From: knight@mrco.carleton.ca (Alan Knight)
Subject: Re: Evaluation order
Message-ID: <knight.794082173@tina.mrco.carleton.ca>
Sender: news@cunews.carleton.ca (News Administrator)
Reply-To: knight@mrco.carleton.ca (Alan Knight)
Organization: Carleton University
References: <3icoho$7es$1@mhadf.production.compuserve.com> <3j28q6$71r@acsnews.uswc.uswest.com>
Date: Wed, 1 Mar 1995 18:22:53 GMT
Lines: 23

In <3j28q6$71r@acsnews.uswc.uswest.com> martin@is.com (Martin McClure) writes:

>In article <3icoho$7es$1@mhadf.production.compuserve.com> David N. Smith  
><70167.2274@CompuServe.COM> writes:
>> Re, order of evaluation and the discussion that has gone on here
>> for a while: see page 30 of the Blue Book, where it says:
>>  
>> 1. Unary expressions parse left to right
>> 2. Binary expressions parse left to right
>> 3. Binary expressions take precedence over keyword expressions
>> 4. Unary expressions take precedence over binary expressions
>> 5. Parenthesized expressions take precedence over unary expressions.
>> 
>Yeah, that's what it says, and that may be the order things are *parsed*  
>in, but they don't necessarily *execute* in that order.

Yes they do! In all dialects, in all (not seriously buggy) versions.

-- 
 Alan Knight                | The Object People
 knight@acm.org             | Smalltalk and OO Training and Consulting
 alan_knight@mindlink.bc.ca | 509-885 Meadowlands Dr.
 +1 613 225 8812            | Ottawa, Canada, K2C 3N2
