I generally use the PMCode option and curry the argument into a ref on the Perl side, pass the ref into the PP code itself, and have the PP code manipulate the pointed-to value inside the ref (using SvRV). Then the PMCode unpacks the pointer and returns the value. Sort of a pain but it works.
[https://perldoc.perl.org/perlguts#References] > On Mar 8, 2022, at 10:09 AM, Ingo Schmid <ingo...@gmx.at> wrote: > > Hi, > > in which way can I pass back non-piddles from PP? Please provide a working > example, I have tried for days and keep failing. See what I've tried so far. > I can write to $COMP(p), use it either as value or pointer, all is well > inside the Code=> part, but whatever I do is lost. I've tried passing as > reference as well. > > Ingo > > > > <Test.pl>_______________________________________________ > pdl-general mailing list > pdl-general@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pdl-general
_______________________________________________ pdl-general mailing list pdl-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-general