bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] Order of operations


From: Antonio Giovanni Colombo
Subject: Re: [bug-gawk] Order of operations
Date: Wed, 15 Jun 2011 21:56:08 +0200

Hi James,

you should have a look at the paragraph 5.14 of
the gawk manual (GAWK: Effective AWK Programming
A User’s Guide for GNU Awk, Edition 3, July, 2009):

5.14 Operator Precedence (How Operators Nest)

The "!" ("not") comes before the "in", and sure you can
alter the order with "(" and ")".

The text can be found online e.g. at:

http://www.scribd.com/doc/25416088/GAWK-Effective-AWK-Programming

Hope it helps, Antonio

On Wed, Jun 15, 2011 at 18:11, <address@hidden> wrote:
Is there a list of order of operations in Gawk?  The reason I am asking is that I was trying to execute:

if ( !x in y)

and rather than executing:
if ( !( x in y))
it did:
if ( (!x) in y )

I couldn't find any reference to order of operations that included the 'in' operator (if it really is an operator).

James


--
       /||\    | Antonio Colombo
  / || \   | address@hidden
 /  ()  \  |  address@hidden
(___||___) |   address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]