in reply to lvalue XS subs

maybe LVRET?

Replies are listed 'Best First'.
Re^2: lvalue XS subs
by ikegami (Patriarch) on Jul 13, 2010 at 03:28 UTC
    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.