[self-interest] Questions about implied self
casey.obrien.r at gmail.com
Thu Feb 17 17:14:52 UTC 2011
On Feb 17, 2011, at 9:10 AM, "Jecel Assumpcao Jr." <jecel at merlintec.com> wrote:
> > So keyword messages eval right to left such than one needs to type
> > less parens? I think this might explain why I've been having trouble
> > typing in expressions that parse; I was under the impression that the
> > capitalization trick took care of that, so, thinko there on my part.
> Where did you get the right to left thing from? Only binary selectors
> with exactly the same name have an evaluation order in Self and
> everything else needs parenthesis. Capitalization eliminates some
> parenthesis (what would be the most inconvenient ones due to the lack of
> an assignment operator) from nested keyword expressions.
I may be suffering from flatulent gray matter; I read this in the handbook, section 2.3.3:
Associativity. Keyword messages associate from right to left, so
5 min: 6 min: 7 Max: 8 Max: 9 min: 10 Max: 11
is interpreted as
5 min: (6 min: 7 Max: 8 Max: (9 min: 10 Max: 11))
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Self-interest