in reply to Re: Reverting the internals of an IV to their original states
in thread Reverting the internals of an IV to their original states
If the objective is to simply keep those flags unchanged, then that objective has now been met. But are there any gotchas associated with leaving $sv in that state ?SV = PVIV(0x33fea8) at 0x33d0e0 REFCNT = 1 FLAGS = (IOK,pIOK) IV = 12345 PV = 0x2838458 "12345"\0 CUR = 5 LEN = 10
I don't think we should assume that such an unannounced and unexpected alteration to the flags of $v would be of no consequence to the user.> perl -MStorable -MDevel::Peek -le "$v = 2**70; Dump($v); $f = Stora +ble::freeze(\$v); Dump($v)" SV = NV(0x47e370) at 0x47e388 REFCNT = 1 FLAGS = (NOK,pNOK) NV = 1.18059162071741e+21 SV = PVNV(0x30a3e8) at 0x47e388 REFCNT = 1 FLAGS = (NOK,pIOK,pNOK,IsUV) UV = 18446744073709551615 NV = 1.18059162071741e+21 PV = 0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reverting the internals of an IV to their original states
by dave_the_m (Monsignor) on Dec 27, 2021 at 15:23 UTC | |
by syphilis (Archbishop) on Dec 28, 2021 at 00:45 UTC | |
by NERDVANA (Priest) on Dec 30, 2021 at 22:21 UTC | |
by syphilis (Archbishop) on Dec 31, 2021 at 01:21 UTC | |
by Anonymous Monk on Dec 30, 2021 at 22:23 UTC |