Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site proper.UUCP Path: utzoo!linus!philabs!seismo!hao!hplabs!intelca!proper!shprentz From: shprentz@proper.UUCP (Joel Shprentz) Newsgroups: net.lang.st80 Subject: Re: st80 grammar ambiguous Message-ID: <872@proper.UUCP> Date: Wed, 18-Jan-84 10:35:22 EST Article-I.D.: proper.872 Posted: Wed Jan 18 10:35:22 1984 Date-Received: Sat, 21-Jan-84 01:43:14 EST References: <7335@arizona.UUCP> Organization: Proper UNIX, San Leandro, CA Lines: 20 The Smalltalk grammar does not seem ambiguous. Your example receiver kw1: arg1 kw2: arg2 nextmessage: arg would send a message with selector kw1:kw2:nextmessage: to receiver. If you wanted nextmessage: to be sent to the result of kw1:kw2: you could use parentheses: (receiver kw1: arg1 kw2: arg2) nextmessage: arg Alternatively, both messages may be cascaded to the same receiver using a semicolon: receiver kw1: arg1 kw2: arg2; nextmessage: arg Despite all the discussion about indenting code, compilers ignore information contained in the format of a program.