Skip to content

Commit

Permalink
av.h: document that backrefs lists are fake AVs
Browse files Browse the repository at this point in the history
  • Loading branch information
richardleach authored and khwilliamson committed Aug 27, 2021
1 parent 4762e1f commit 7073dfe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions av.h
Expand Up @@ -23,10 +23,11 @@ struct xpvav {
* Such AVs may be referred to as "real" AVs. Examples include regular
* perl arrays, tiedarrays (since v5.16), and padlist AVs.
*
* Some things like "@_" (unless tied) and the scratchpad list do not set
* SVpav_REAL, to indicate that they are cheating (for efficiency) by not
* refcounting the AV's contents or ensuring that all elements are safe for
* arbitrary access. This type of AV may be referred to as "fake" AVs.
* Some things do not set SVpav_REAL, to indicate that they are cheating
* (for efficiency) by not refcounting the AV's contents or ensuring that
* all elements are safe for arbitrary access. This type of AV may be
* referred to as "fake" AVs. Examples include "@_" (unless tied), the
* scratchpad list, and the backrefs list on an object or stash.
*
* SVpav_REIFY is only meaningful on such "fake" AVs (i.e. where SVpav_REAL
* is not set). It indicates that the fake AV is capable of becoming
Expand Down

0 comments on commit 7073dfe

Please sign in to comment.