develooper Front page | perl.perl5.porters | Postings from July 2010

Re: Order of evaluation of terms (was peephole optimiser could prune more dead code)

Thread Previous | Thread Next
From:
David Golden
Date:
July 15, 2010 16:21
Subject:
Re: Order of evaluation of terms (was peephole optimiser could prune more dead code)
Message ID:
AANLkTilE5JTClpVUr0cax6s1yLzA0fx_YyZKcAvcmbKy@mail.gmail.com
On Thu, Jul 15, 2010 at 6:26 PM, demerphq <demerphq@gmail.com> wrote:
> That is, the "(Leftward)" is meant to be a property of List Operators,
> but not of Terms.

It makes sense given the discussion, but it's contradicted in the
table at the top of perlop:

       Perl operators have the following associativity and precedence, listed
       from highest precedence to lowest.  Operators borrowed from C keep the
       same precedence relationship with each other, even where C's precedence
       is slightly screwy.  (This makes learning Perl easier for C folks.)
       With very few exceptions, these all operate on scalar values only, not
       array values.

           left        terms and list operators (leftward)
           ...

-- David

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