in reply to Re^5: Runtime introspection: What good is it?
in thread Runtime introspection: What good is it?

SUPER:: is broken in Perl

Check out SUPER, it might help you there ;)

you can't tell a method from a subroutine

Yeah I agree that is annoying too, however it is possible to get some stuff. For instance, in Moose we differentiate between exported subs from another package and subs defined in that package. Then there is also stuff like MooseX::Method which make it easier to "tag" methods and therefore tell them apart.

But yeah in the end I will agree there are some broken parts to Perl 5 OO model, but the fact that I can fix most of them and provide a decent hack to work around or at least minimize the others is a pretty good. Try that in Java/C#/etc.

-stvn
  • Comment on Re^6: Runtime introspection: What good is it?