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

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

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
September 4, 2002 12:25
Subject:
Re: [netlabs #801] [PATCH] PerlArray in scalar context
Message ID:
20020904212223.072A.H.M.BRAND@hccnet.nl
On Wed 04 Sep 2002 20:31, "Sean O'Rourke" <sorourke@cs.ucsd.edu> wrote:
> 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;
        
        $a = $b + $c + $d;
        
        I might hope
        
>     }
> 
> /s

-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using perl-5.6.1, 5.8.0 & 633 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
  WinNT 4, Win2K pro & WinCE 2.11.  Smoking perl CORE: smokers@perl.org
http://archives.develooper.com/daily-build@perl.org/   perl-qa@perl.org
send smoke reports to: smokers-reports@perl.org, QA: http://qa.perl.org



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