Re: changes in 'require'
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: changes in 'require'
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2005年7月11日 12:29:32 -0300
> > require"foo.bar" works as usual; but if "foo.bar" doesn't exist then try
> > to require"foo" before failing.
>
> Just out of curiosity, what's wrong with Javier's proposal? It seems
> pretty simple and feasible to me.
Among other problems you mix two things - hierarchies and fail recover.
For instance, if foo.bar fails because the file isn't there, foo may yet
succeed. So require "foo.bar" succeeds without loading foo.bar...
-- Roberto