Front page | perl.perl5.porters |
Postings from February 2012
Marking a XSUB as lvalue
Thread Next
From:
David Mertens
Date:
February 23, 2012 08:01
Subject:
Marking a XSUB as lvalue
Message ID:
CA+4ieYVLCXmdw50w0_gTuKmrq7crBebtS9F5z_m5ewdMpKGxDw@mail.gmail.com
Hello all -
I am writing with a question in an effort to fix this ticket:
https://rt.perl.org/rt3/Public/Bug/Display.html?id=107366
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 (
http://www.nntp.perl.org/group/perl.perl5.porters/2009/08/msg149580.html),
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?
Thanks!
David
--
"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
-
Marking a XSUB as lvalue
by David Mertens