in reply to Re^2: XS: SvPVLV examples?
in thread XS: SvPVLV examples?
substr and vec are special in the fact that they are lvalue functions.
ref returns "LVALUE" for references to PVLV variables (except it lies SCALAR for tied scalars), so it's clear "LV" refers to "lvalue".
PVLV adds the following fields to its "base class", PVMG (scalar with magic):
STRLEN xlv_targoff; STRLEN xlv_targlen; SV* xlv_targ; char xlv_type; /* k=keys .=pos x=substr v=vec /=join/re * y=alem/helem/iter t=tie T=tied HE */
The extra fields only have meaning to the associated magic handlers (found in mg.c).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: XS: SvPVLV examples?
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 | |
by BrowserUk (Patriarch) on Sep 25, 2009 at 03:11 UTC | |
| |
by ikegami (Patriarch) on Sep 25, 2009 at 03:40 UTC | |
|