Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: lvalue XS subs

by Anonymous Monk
on Jul 13, 2010 at 03:16 UTC ( [id://849149]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://849149]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 07:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found