15 May 07:05
Re: Method lookup for modules included in modules
From: ara.t.howard <ara.t.howard <at> gmail.com>
Subject: Re: Method lookup for modules included in modules
Newsgroups: gmane.comp.lang.ruby.general
Date: 2008-05-15 05:05:41 GMT
Subject: Re: Method lookup for modules included in modules
Newsgroups: gmane.comp.lang.ruby.general
Date: 2008-05-15 05:05:41 GMT
On May 14, 2008, at 8:29 PM, Mark Wilden wrote: > > Here's my problem. If A1 doesn't contain the method, what causes the > search to backtrack to the B proxy and follow its super pointer to > the C proxy? This "backtracking" seems counter to the purported > "linear" lookup order. (This is just a conceptual problem for me - > it's obvious what the lookup order is, and it's easy to verify.) as each module in included in the target, it's entire lookup chain is added to that target - therefore no 'backtracking' is required, we just end up with a long line that, when followed, happens to give the appearance if backtracking. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama
RSS Feed