develooper Front page | perl.perl5.porters | Postings from August 2021

Re: Document PL_phase_names?

Thread Previous
Felipe Gasper
August 5, 2021 22:16
Re: Document PL_phase_names?
Message ID:

> On Aug 5, 2021, at 5:14 PM, Leon Timmermans <> wrote:
> On Thu, Aug 5, 2021 at 10:04 PM Felipe Gasper <> wrote:
> Hi all,
>         Would there be any problem with documenting PL_phase_names in perlapi? PL_phase is documented since 5.32, but we document the means by which the phase name is available.
>         I’ll submit a PR if it sounds agreeable.
>         Thank you!
> In general, I think it's wiser to make functions API than interpreter variables. They give much more maneuvering space when we want to change something about the implementation.

Good point .. how about:

#define PL_phase_name(phase) (PL_phase_names[phase])


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About