[jifty-devel] RFC: Design change in ClassLoader
John Peacock
jpeacock at rowman.com
Thu Jun 22 15:36:59 EDT 2006
Alex Vandiver wrote:
> Hrm. But returning 'undef' from the INC sub should silently pass
> control on to the next thing in @INC. perlfunc says:
> If an empty list, C<undef>, or nothing that matches the first 3
> values above is returned then C<require> will look at the
> remaining elements of @INC.
Oh, it does! That's not the problem. The problem is that
Jifty::Util->require() issues a mandatory log->error() message when the
require itself fails. The @INC code works, but the log is littered with
false alarms.
> That being said, I think it's probably easier to understand the
> ClassLoader if it only shows up once in @INC, so the fall-though isn't
> implicit but explicit, so having a loop that processes regexen would be
> a much cleaner alternative to the current code.
Great, I'll get started tonight.
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5748
More information about the jifty-devel
mailing list