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

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

Thread Previous | Thread Next
From:
Sean O'Rourke
Date:
September 4, 2002 11:31
Subject:
Re: [netlabs #801] [PATCH] PerlArray in scalar context
Message ID:
Pine.GSO.4.32.0209041129410.3283-100000@gradlab.ucsd.edu
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;
    }

/s


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