Skip to content

Perlguts: Minor queries regarding the "Ref-counted arg stack" documentation #21443

@richardleach

Description

@richardleach

Where
pod/perlguts.pod

Description

  1. The "Reference-counted argument stack" section discusses changes to the stack previously referred to as the "value" stack. We should pick either "argument stack" or "value stack" and stick to it in core documentation to avoid unnecessary reader confusion. (I dunno which, or else would have raised a PR.)
  2. In the "(Re)writing a PP function using the rpp_() API" section, it says that rpp_try_AMAGIC_1() is akin to tryAMAGICun_MG(), but it looks the old macro cannot just be switched to the new one, the return value of rpp_try_AMAGIC_1() seems to always have to be checked to see if it is true, and if so, an immediate return is required.

i.e.

tryAMAGICun_MG(neg_amg, AMGf_numeric);

becomes:

if (rpp_try_AMAGIC_1(neg_amg, AMGf_numeric))
    return NORMAL;

I don't know if that will always be the case and if it should be documented here if so? (Or if this will be a moot point if we make all pp functions RC-aware relatively quickly.)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions