Syntactic Confectionery Delight | |
PerlMonks |
Re^2: module with conditional xs codeby salva (Canon) |
on Mar 20, 2020 at 00:51 UTC ( [id://11114498]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|