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

Re: slice autoextending ? still another revised doc patch; COW

Thread Previous | Thread Next
From:
david nicol
Date:
April 22, 2003 20:09
Subject:
Re: slice autoextending ? still another revised doc patch; COW
Message ID:
1051067101.1086.113.camel@plaza.davidnicol.com
On Tue, 2003-04-22 at 21:39, Ronald J Kimball wrote:

> C<< >> was new in 5.6.  It is already in use throughout the core
> documentation.  I don't think it makes much sense to add new uses of E<gt>
> instead.

Okay.  Furthermore I've changed the index variable from an x to an i
because it's an index variable instead of an unknown, which addresses
the fact that none of the first four examples care at all about the
value of $x, and it should please any old fortran programmers who might
stumble into the passage.  IMO splice
doesn't even need to fetch its data arguments and should manipulate
aliases, just to cause more problems.  Maybe in an ideal world,
C<splice> (and the four instructions that one mistakenly (?) imagines
are sugar for it) would work with COW aliases instead of values.  And
we could use indentation to indicate blocking, instead of all these
damn curly brackets. (The sentence previous to this one is a joke.)

Do we have copy-on-write assignment yet?  I know it's been discussed
here before. What's its current status?  I guess COW_ALIAS
would have to be yet another tie primitive then, and a TIESCALAR package
that didn't provide it would default to FETCHing.


David

-- 
David Nicol, independent consultant and contractor
have a nice day, really. http://www.funnytimes.com 


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