Stories
Slash Boxes
Comments
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.
 Full
 Abbreviated
 Hidden
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
       
    • I just uploaded Class::XSAccessor [cpan.org] to PAUSE. It contains the code to install the fast XS accessors into user packages. It also supports setters.