develooper Front page | perl.perl5.porters | Postings from February 2008

docs say nothing about av_delete calling sv_2mortal on the returnedSV

From:
=?ISO-8859-1?Q?Salvador_Fandi=F1o?=
Date:
February 24, 2008 15:12
Subject:
docs say nothing about av_delete calling sv_2mortal on the returnedSV
Message ID:
20080224231216.13415.qmail@lists.develooper.com
Hi,

av_delete mortalizes the deleted value before returning it.

This is not consistent with the other two functions returning a deleted
value from an array (av_pop, av_shift) so I think it should be explained
on the function docs.


Cheers,

 - Salva





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About