in reply to Re: XS: SvPVLV examples?
in thread XS: SvPVLV examples?
Well, the architypical examples are pp_substr and pp_vec.
The latter is the simpler of the two, but I'm confused somewhat by the "TARG" which suddenly comes into existance and seems to be the basis for everything else. Sometimes it is used as-is (ie.in the state it magically appears in when the subroutine is called); sometimes it is upgraded to a PVLV and has magic attached to it; sometimes it is ignored (or discarded?) in favour of a newmortal SV.
There is also stuff in there about opcodes and opcode states which muddies things further. That why I was hoping to find a non-core example of someone doing it. I assume(d) it would be simpler.
But maybe there are no non-core examples, because noone else can work out how to do it either. TARG barely rates a mention in any of the documentation I've seen.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XS: SvPVLV examples?
by ikegami (Patriarch) on Sep 25, 2009 at 02:01 UTC | |
by BrowserUk (Patriarch) on Sep 25, 2009 at 02:29 UTC | |
by ikegami (Patriarch) on Sep 25, 2009 at 02:31 UTC | |
by BrowserUk (Patriarch) on Sep 25, 2009 at 02:42 UTC | |
by ikegami (Patriarch) on Sep 25, 2009 at 03:00 UTC | |
|