[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: changes in 'require'
- From: Diego Nehab <diego@...>
- Date: Tue, 12 Jul 2005 17:49:11 -0400 (EDT)
Hi,
I agree IPL is complicated. But how about Adrian's solution?
require"a.b.c.d"
try a.b.c.d
if not found, implicitly require"a.b.c.xxx"
try preload a.b.c.d
if not found, implicitly require"a.b.xxx"
try preload a.b.c.d
if not found, implicitly require"a.xxx"
try preload a.b.c.d
if not found, implicitly require"xxx"
try preload a.b.c.d
It's an optimized mix of the fixed name idea with Doug's "go up on
failure and retry" approach.
[]s,
Diego.