diff options
author | Richard Leach <richardleach@users.noreply.github.com> | 2021-08-13 22:50:38 +0100 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2021-08-27 07:12:53 -0600 |
commit | 37018d9541041f8c096d300886fc94c43f174656 (patch) | |
tree | c1643ff33a55a2ad130d1682d251d5099884abd8 /av.h | |
parent | 48d21358f7bd06d60aaa4f913cd417b5eafa3fc0 (diff) | |
download | perl-37018d9541041f8c096d300886fc94c43f174656.tar.gz |
av.h - addressing comments
Diffstat (limited to 'av.h')
-rw-r--r-- | av.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -131,8 +131,8 @@ might be called directly: Or it might be called implicitly when the first element is stored: (void)av_store(av, 0, sv); -Whether or not any as-yet-untouched array elements are initialized by -av_extend depends upon whether the array is "real" at the time. +Unused array elements are typically initialized by av_extend, but this +is undesirable and will not be the case for some specific arrays. In contrast, when an AV is created for immediate population with a known (or likely) number of elements, it is more efficient to immediately @@ -148,8 +148,8 @@ newAV_alloc_x does not initialize the array elements - and so the expectation is that all should be initialized elsewhere prior to any potentials reads. newAV_alloc_xz does initialize the array elements. -As an example, the following examples all result in an array that can -fit four elements (indexes 0 .. 3): +The following examples all result in an array that can fit four elements +(indexes 0 .. 3): AV *av = newAV(); av_extend(av, 1); |