Skip to content

Commit

Permalink
perldelta entry for Perl_sv_setsv_flags changes
Browse files Browse the repository at this point in the history
  • Loading branch information
richardleach committed Dec 16, 2024
1 parent 4419193 commit 0877c09
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pod/perldelta.pod
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,19 @@ L<C<valid_identifier_pvn()>|perlapi/valid_identifier_pvn> and
L<C<valid_identifier_sv()>|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
Expand Down

0 comments on commit 0877c09

Please sign in to comment.