develooper Front page | perl.perl6.internals | Postings from September 2002

Re: [netlabs #801] [PATCH] PerlArray in scalar context

Thread Previous | Thread Next
Sean O'Rourke
September 4, 2002 11:31
Re: [netlabs #801] [PATCH] PerlArray in scalar context
Message ID:
On Wed, 4 Sep 2002, Peter Haworth wrote:
> Having the iteration done in the bytecode could make this simpler,
> although at the expense of needing more bytecode.

And fewer temporaries, by translating this:

    @a = @b ^+ @c ^+ @d;

into this:

    for @a; @b; @c ; @d -> $a, $b, $c, $d is rw {
	$d = $a + $b + $c;


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About