On Tue, 15 Mar 2022 14:55:06 +0900 Yuki Kimoto <kimoto.yuki@gmail.com> wrote: > This is because I don't know the cases that the value is changed after > "started". > > A value is started as a number (3). If the value is used as a string, > "3" is maybe cached to the pv slot. > > A value is started as a string ("3"). If the value is used as a > number, 3 is maybe cached to the nv or iv slot. > > As Darren says, Is the value classified to a string or a number from > the starting to the destruction, not only starting? Indeed, this is the point of the core perl change, to make the public flags reliable and fixed after the value is created. We can now use those flags to reliably answer questions about the origin of a value, irrespective of any additional cached parts the value has gained as a side-effect of being looked at since then. -- Paul "LeoNerd" Evans leonerd@leonerd.org.uk | https://metacpan.org/author/PEVANS http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/Thread Previous | Thread Next