Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: module with conditional xs code

by salva (Canon)
on Mar 20, 2020 at 00:51 UTC ( [id://11114498]=note: print w/replies, xml ) Need Help??


in reply to Re: module with conditional xs code
in thread module with conditional xs code

Indeed, I did something quite similar for Math::Vector::Real and Math::Vector::Real::XS, but instead of creating the pure Perl methods on demand on the main module, they are just regular functions always defined and the XS module overwrites them with its own versions when loaded.

The advantage of that approach is that it allows me to implement only a subset of the functions on the XS side.

Replies are listed 'Best First'.
Re^3: module with conditional xs code
by navalned (Beadle) on Mar 21, 2020 at 16:29 UTC

    Thanks for the input. I'll take a look at these. Sounds like it may be a better approach.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114498]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-03-28 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found