From: Charles Oliver Nutter Date: 2008-12-03T23:49:49+09:00 Subject: [ruby-core:20258] Re: Behavior: autoload calls rb_require() directly Paul Brannan wrote: > On Wed, Dec 03, 2008 at 01:50:42PM +0900, Charles Oliver Nutter wrote: >> Rather than having autoload actually invoke the global require, whatever >> it may be defined as, I think the better change would be the >> long-postponed "require plugin" logic that's been discussed previously. >> Rather than anyone ever needing to redefine require, there should be a >> simple way to add to the require lookup chain with normal Ruby code. >> require overrides have a nasty tendency to break each other, and > > How would a require plugin avoid this? It seems to me they would still > be order-dependant. require plugins would only advise the require process of additional paths, extensions, what have you. They would not perform the actual load. Yes, it would still be order dependent, but any plugin in the chain could opt out of finding a library and allow the other mechanisms to fire. - Charlie