Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2015-03-03 11:49 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (70 votes), past polls