in reply to Re^2: lvalue XS subs
in thread lvalue XS subs

The key being CvLVALUE_on(cv).

Replies are listed 'Best First'.
Re^4: lvalue XS subs
by etj (Priest) on Nov 25, 2024 at 00:54 UTC
Re^4: lvalue XS subs
by etj (Priest) on Nov 24, 2024 at 18:37 UTC
    As noted elsewhere on the thread. But without knowing to put that in a BOOT section, and to get the CV of the sub first, that's not actionable (i.e. useful) by itself. The code above one can just copy-paste from (and then, when I get to it, make a PDL::PP key that will do it all automatically).

    Speaking of, there's a few other things done with boilerplate within a couple of the modules (overloading in PDL::Ops, PDL::Primitive, also PDL::LinearAlgebra and PDL::Complex, some parameter-handling) that should become PP features too. Ars longa, vita brevis!