[comp.lang.smalltalk] method selectors

michael@trigraph.UUCP (Michael Winser) (02/15/88)

What I want to be able to do is something like this

	anArray.do(atPut,index,value);

this would be equivalent to the smalltalk statement

	anArray do: [:i | i at: index Put: value ]

Most of the "tricks" I can think of do this would be *very* ugly and
defeat the purpose of using c++.
The problem is largely one of binding time.  In c++ lexical binding
occurs very early, in objective-c and even more so in smalltalk, 
the lexical binding is postponed until runtime.

I like c++ quite a lot, but I can't help feeling that more flexibility
in choosing the binding time would be very nice.

Michael.
-- 
...utscri!trigraph!michael            Michael Winser
michael@trigraph.UUCP                 Trigraph Inc.
                                      5 Lower Sherbourne St. #201
(416) 363-8841                        Toronto,Ontario M5R 3H8