Skip to content

Commit 0877c09

Browse files
committed
perldelta entry for Perl_sv_setsv_flags changes
1 parent 4419193 commit 0877c09

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pod/perldelta.pod

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,19 @@ L<C<valid_identifier_pvn()>|perlapi/valid_identifier_pvn> and
504504
L<C<valid_identifier_sv()>|perlapi/valid_identifier_sv> have been added, which
505505
test if a string would be considered by Perl to be a valid identifier name.
506506

507+
=item *
508+
509+
When assigning from an SVt_IV into a SVt_NV (or vice versa), providing that
510+
both are "bodyless" types, Perl_sv_setsv_flags will now just change the
511+
destination type to match the source type. Previously, an SVt_IV would have
512+
been upgraded to a SVt_PVNV to store an NV, and an SVt_NV would have been
513+
upgraded to a SVt_PVIV to store an IV. This change prevents the need to
514+
allocate - and later free - the relevant body struct.
515+
516+
=item *
517+
518+
XXX
519+
507520
=back
508521

509522
=head1 Selected Bug Fixes

0 commit comments

Comments
 (0)