From: Robert Dober Date: 2008-04-04T23:20:45+09:00 Subject: Re: Lookup of Capitalized Methods On Fri, Apr 4, 2008 at 4:07 PM, Trans wrote: > Well, silly me, I just realized what I suppose is THE issue with > capitalized methods serving as proxies for modules/classes. > > To put it in context, I was working on Parametric mixins, such that > some #Includable() returns Includable after defining the parameters in > "self". It works great except... > > The scope lookup of methods is not the same a constants. > > That's kind of a shame, this is such a useful technique, in my > opinion. Now I would be just as happy to use Includable#[] instead, > but without a Binding.of_caller it is not possible. > > So, assuming we are still ideologically opposed binding-of-caller what > do others think of the idea of capitalized methods having the same > scope lookup as constants? At first sight it is counter intuitive, so I am quite against it. OTOH Capitalized Methods Are Not Something Used A Lot... Nevertheless I am afraid of confusion. Sorry Robert > > T. > > -- http://ruby-smalltalk.blogspot.com/ --- Whereof one cannot speak, thereof one must be silent. Ludwig Wittgenstein