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

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.

Replies are listed 'Best First'.
Re^3: lvalue XS subs
by Anonymous Monk on Jul 13, 2010 at 07:15 UTC