[Perl/perl5] e1929a: Rename CvNAMED to CvHasNAME_HEK

[email protected] (Paul Evans via perl5-changes) Wed, 29 Jul 2026 06:40:36 -0700
Newsgroups perl.perl5.changes
Message-ID <Perl/perl5/push/refs/heads/blead/[email protected]>
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: e1929a6a37abbf5c07f2cd8eca0ecd0fdd36a3a9
      https://github.com/Perl/perl5/commit/e1929a6a37abbf5c07f2cd8eca0ecd0fdd36a3a9
  Author: Paul "LeoNerd" Evans <[email protected]>
  Date:   2026-07-29 (Wed, 29 Jul 2026)

  Changed paths:
    M cv.h
    M dump.c
    M ext/B/B.pm
    M ext/B/B.xs
    M ext/Devel-Peek/t/Peek.t
    M gv.c
    M inline.h
    M mg.c
    M op.c
    M pad.c
    M pp.c
    M regen/embed.pl
    M sv.c
    M universal.c
    M util.c

  Log Message:
  -----------
  Rename CvNAMED to CvHasNAME_HEK

The previous name was misleading; most CVs have "a name", by way of the
GvNAME_HEK of their CvGV. This flag indicated the unusual case of a CV
not having a CvGV but instead having a name directly set with a HEK
stored directly in the CV.

Rather than write all that in the upcoming documentation for it, I
decided it nicer and less misleading to just rename the flag and
associated macros to a more meaningful one. This follows the new pattern
of putting "Is" or "Has" in title case in the macro name, which tends to
be more readable (and is less likely to be misread as "HASH").

The new symbol name is currently added to the "unresolved" section in
embed.pl but in my next commit I'll remove it again when I add
documentation.



To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications