in reply to Circular reference testing.
But more than one SvNULL will be created, as the following shows:
And note that their addresses are 24 bytes apart, which doesn't suggest any alignment on 16 or 20 byte intervals. This:$ perl -MDevel::Peek -we '$a = undef; $b = undef; Dump($a); Dump($b)' SV = NULL(0x0) at 0x8191dc4 REFCNT = 1 FLAGS = () SV = NULL(0x0) at 0x8191ddc REFCNT = 1 FLAGS = ()
creates two SVs 36 bytes apart, which suggest you can't use anything larger than 12.$ perl -MDevel::Peek -we '$a = 1; $b = 2; Dump ($a); Dump ($b)' SV = IV(0x8192edc) at 0x8191dbc REFCNT = 1 FLAGS = (IOK,pIOK) IV = 1 SV = IV(0x8192ee4) at 0x8191de0 REFCNT = 1 FLAGS = (IOK,pIOK) IV = 2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Circular reference testing.
by BrowserUk (Patriarch) on Mar 08, 2005 at 17:16 UTC |