From 0877c09313129ad9ab50aeabf870cf5fce9724a0 Mon Sep 17 00:00:00 2001 From: Richard Leach Date: Wed, 6 Nov 2024 23:44:35 +0000 Subject: [PATCH] perldelta entry for Perl_sv_setsv_flags changes --- pod/perldelta.pod | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pod/perldelta.pod b/pod/perldelta.pod index f6835e32c945..5cd3fdcb4d83 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -504,6 +504,19 @@ L|perlapi/valid_identifier_pvn> and L|perlapi/valid_identifier_sv> have been added, which test if a string would be considered by Perl to be a valid identifier name. +=item * + +When assigning from an SVt_IV into a SVt_NV (or vice versa), providing that +both are "bodyless" types, Perl_sv_setsv_flags will now just change the +destination type to match the source type. Previously, an SVt_IV would have +been upgraded to a SVt_PVNV to store an NV, and an SVt_NV would have been +upgraded to a SVt_PVIV to store an IV. This change prevents the need to +allocate - and later free - the relevant body struct. + +=item * + +XXX + =back =head1 Selected Bug Fixes