LVRET detects if a sub is called as an lvalue (or something like that). I have no problem putting an SV on the stack, the problem is getting the following to compile
sub foo :lvalue { lvalue_xs_sub() }
I could avoid it with something like
sub foo :lvalue { out_param_xs_sub(my $x); $x }
but the point is to create a test for a bug I want to fix so I can fix another bug (delayed object destruction) in substr, pos and vec. |