develooper Front page | perl.perl6.language | Postings from January 2003

Re: Arrays: Default Values

From:
Dave Whipp
Date:
January 28, 2003 20:14
Subject:
Re: Arrays: Default Values
Message ID:
20030129041411.60878.qmail@onion.perl.org
Aaron Sherman wrote:

> auto-vivification will have to happen in some cases. e.g. if foo
> requires a lvalue parameter. You can't know if an actual write will
> happen, so you have to auto-vivify in order to pass a reference.
> 
> Or did I miss something there?

I think the idea is to use a special object which, if assigned to, will 
create the required element.


Dave.
--
http://dave.whipp.name




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