Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Replace Class::Load by Module::Runtime #5
Replacing Class::Load::load_class with Module::Runtime::use_module
Fixes #3. Replacing Class::Load::load_class with Module::Runtime::use_module doesn't work for classes loaded from files that don't correspond to their names (Some::Foo in t/basic.t). Using use_package_optimistically instead makes the tests pass, but according to the documentation of Module::Runtime, if a file with the expected name was placed into @inc, it would be loaded despite the fact the package had already been loaded from a different file, which is a behaviour change. There's nothing like Class::Load::is_class_loaded in Module::Runtime.