Subject: | Doesn't prevent addition of string to SV |
For instance, using "encode_json" from JSON::XS:
const my $h => { num => 42 };
encode_json($h); # {"num":42};
$h->{num} eq 42; # to cause the string to be added
encode_json($h); # {"num":"42"}
That said, I don't know if this is easily fixable. Readonly seems to prevent the addition of the PV, but I think there is some black magic going on there.