Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^6: Dynamically wrapping ancestor method calls

by rafl (Friar)
on Dec 12, 2006 at 23:37 UTC ( #589452=note: print w/replies, xml ) Need Help??

in reply to Re^5: Dynamically wrapping ancestor method calls
in thread Dynamically wrapping ancestor method calls

That is indeed a solution that would work. Unfortunately Audio::XMMSClient is written in XS. Therefor adding that wrapper around the according return statements would be somewhat painful unless I add some pure-perl wrapper to all XS functions, which I don't want for obvious reasons.

I already thought of using Moose and register a function to be called after a given function, but unfortunately this has the same problem as the subclassing approach: I need to have a list of all relevant functions. But as this changes frequently as the libxmmsclient API isn't stable yet and there have been large changes merged recently in the development branch I don't really want that.

Cheers, Flo

  • Comment on Re^6: Dynamically wrapping ancestor method calls

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://589452]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2018-04-26 02:52 GMT
Find Nodes?
    Voting Booth?