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.