develooper Front page | perl.perl5.porters | Postings from April 2006

Re: Perl Memory Management and Documentation

Thread Previous | Thread Next
From:
Yitzchak Scott-Thoennes
Date:
April 2, 2006 12:51
Subject:
Re: Perl Memory Management and Documentation
Message ID:
20060402195125.GC1944@efn.org
On Thu, Mar 30, 2006 at 04:50:28AM -0800, Gisle Aas wrote:
> Yitzchak Scott-Thoennes <sthoenna@efn.org> writes:
> 
> > And length is for the length, not the buffer size.  So I don't think
> >    length($x) = 1000; 
> > is a good idea.
> 
> But on the other hand it seems very similar to how assignment of
> 'keys %hash' currently works.  This assignment sets the internal
> HvMAX attribute instead of actually affecting HvKEYS.  It would be
> consistent to make assignment to length($str) affect SvLEN.

Good point.

Thread Previous | Thread Next


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