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

use Perl Log In

Log In

[ Create a new account ]

VSarkiss (704)

VSarkiss
  (email not shown publicly)
Yahoo! ID: vah3sark (Add User, Send Message)

I haven't really taken the time to set this up, but you can look at my home node [perlmonks.org] on Perl Monks.

Journal of VSarkiss (704)

Friday July 07, 2006
11:43 AM

I have a feeling I'm missing something very clever

[ #30209 ]

Hm. I like reading the "This week on p5p" summaries, and I usually understand the conversation. This one looked like something really clever was going on, but I didn't get it all. (I know C, but not XS.) The MMD in the name makes me think of multi-method dispatch, but I don't see how it fits. Clarification, anyone?

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.
  • You can fake multidispatch in Perl 5 right now by writing a little wrapper in Perl that checks the arguments and redispatches to the right multi-variant.

    This just pushes that check to the C level by redefining the method lookup opcode. The code doesn't actually redispatch, but it demonstrates that it is possible to override opcodes.