develooper Front page | perl.perl5.porters | Postings from February 2012

Marking a XSUB as lvalue

Thread Next
David Mertens
February 23, 2012 08:01
Marking a XSUB as lvalue
Message ID:
Hello all -

I am writing with a question in an effort to fix this ticket:

On way to get rid of this issue, as far as I can tell, is to properly
declare a few XSUBS as lvalue functions. (Right now they are improperly
declared as such, if I read the above ticket correctly.) However, judging
from this thread (,
it looks like Perl does not support marking an XSUB as an lvalue sub. Is
this correct? In particular, is there any way to do this that will stretch
back to Perl 5.8, which is the version of Perl that PDL currently supports?

A simple solution, I hope, would be to mark the subs as lvalue before
calling Dynaloader. Would that work?



 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About