in reply to SV creation inside XS
You're making the same mistake I (and others) made. That of assuming that newSVrv() creates a new RV that points to the SV passed to it as an argument. It doesn't.
The documentation for the call reads:
newSVrvCreates a new SV for the RV, rv, to point to. If rv is not an RV then it will be upgraded to one. If classname is non-null then the new SV will be blessed in the specified package. The new SV is returned and its reference count is 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SV creation inside XS
by llancet (Friar) on Nov 07, 2011 at 01:01 UTC | |
by BrowserUk (Patriarch) on Nov 07, 2011 at 01:12 UTC | |
by llancet (Friar) on Nov 09, 2011 at 01:53 UTC | |
by BrowserUk (Patriarch) on Nov 09, 2011 at 03:41 UTC | |
by llancet (Friar) on Nov 09, 2011 at 04:43 UTC | |
| |
by ikegami (Patriarch) on Nov 09, 2011 at 06:09 UTC | |
by ikegami (Patriarch) on Nov 07, 2011 at 02:22 UTC |