Xref: utzoo comp.lang.c++:789 comp.lang.smalltalk:464 Path: utzoo!dciem!trigraph!michael From: michael@trigraph.UUCP (Michael Winser) Newsgroups: comp.lang.c++,comp.lang.smalltalk Subject: method selectors Message-ID: <369@trigraph.UUCP> Date: 15 Feb 88 19:50:45 GMT Article-I.D.: trigraph.369 Posted: Mon Feb 15 14:50:45 1988 Reply-To: michael@trigraph.UUCP (Michael Winser) Organization: Trigraph Inc., Toronto, Canada Lines: 23 Summary: when are they bound? 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