Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • This would be pretty awesome in something like Moose or Class::Accessor::Classy.

    I would rather see it work declaratively instead of scanning for candidates (that seems like a separate tool.)

    I'm also sort of envisioning an optimizing build process (which would eliminate any latency in compiling during development -- something that always bugs me about Inline.)
    • You're right, of course. The code is really two quite separate parts: The B-based scanner which identifies targets and the XS/ALIAS hack which instantiates a new "curried" alias to the XSUB accessor. It should be simple to let the user explicitly flag subs for replacement instead of scanning. (Though the preposterous namespace choice doesn't make sense any more then.)

      Actually, it would be even simpler to have a module and interface:

      use Class::Accessor::XS::I::Am::Sure::That::Namespace::Is::Taken
          get_foo => 'foo',
          get_some_property => 'propertyname_aka_hashkey',

      The code is there. One would just have to write the import() sub.

      Perhaps I'll do that and just use it in AutoXS::Accessor with a replace_existing_subs_yes_I_fucking_mean_it => 1 option. :)

      Other takers welcome, no question.