ingydotnet/mo-pm — pull request #15 by melo (2012-04-18 11:48:34+00:00)
Title: RFC: Make sure extends() dies if we fail to load the parent package

If the package in extends() fails to load (either because of a typo or a syntax error), Mo silently ignores this and keeps going. This changes make extends() propagate the error message that `no PACKAGE ()` generates.

OTOH this makes inline classes (like those used on `t/build.t` and `t/test.t`) stop working because inline classes don't update %INC and so a follow up extends() in a child class would die with "Cannot find PACKAGE.pm".

We changed Mo::import() to update %INC if needed. This may have other consequences that I'm not thinking about right now. If so, please suggest an alternative to support inline classes, I will update my branch with it.

Signed-off-by: Pedro Melo