in reply to Re: Using sub routines or AUTOLOAD for XS constants
in thread Using sub routines or AUTOLOAD for XS constants

Sub::Exporter uses can? That's a bug. can is for methods, and it makes no sense to export methods.

Replies are listed 'Best First'.
Re^3: Using sub routines or AUTOLOAD for XS constants
by chromatic (Archbishop) on Jan 02, 2010 at 10:25 UTC
    can is for methods...

    I agree in principle, but what's the difference in practice between a method and a function, at least when you're groveling through a package's symbol table?

    There's likely a bug lurking in Sub::Exporter here as well, if it ever tries to export an inherited function.

      It means there's a hole (false positives) in the error checking the author apparently desires, and it probably allows it to export inherited subs are a result.