Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: awka on Mac...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 8 Topic 2225 of 2241
Post > Topic >>

Re: awka on Mac OS X 10.4.11 [Intel]

by Robert Peirce <bob@[EMAIL PROTECTED] > Apr 24, 2008 at 12:46 PM

In article <funkla$p31$1@[EMAIL PROTECTED]
>,
 Janis Papanagnou <Janis_Papanagnou@[EMAIL PROTECTED]
> wrote:

> Robert Peirce wrote:
> > 
> > Frankly, it never occurred to me that these would be different.  I
still 
> > have trouble figuring out the logic behind the line that produced 28. 

> > 25 made sense, but not 28.
> 
> Why? If b was 13 and is pre-incremented before the rest of the
> expression is evaluated then you have 14 + 14 = 28.
> 
>    print b            # 13
>    print b += ++b
>    print b

I didn't say I couldn't figure it out.  I said I had trouble figuring it 
out.  It is interesting that some awks produce 25 while others produce 
28.  This is clearly some pretty tricky C coding that is not well 
understood by everybody.

-- 
Robert B. Peirce, Venetia, PA  724-941-6883
bob AT peirce-family.com [Mac]
rbp AT cooksonpeirce.com [Office]




 8 Posts in Topic:
awka on Mac OS X 10.4.11 [Intel]
Robert Peirce <bob@[EM  2008-04-23 11:42:55 
Re: awka on Mac OS X 10.4.11 [Intel]
Janis <janis_papanagno  2008-04-23 05:48:55 
Re: awka on Mac OS X 10.4.11 [Intel]
Thomas Weidenfeller <n  2008-04-23 15:48:54 
Re: awka on Mac OS X 10.4.11 [Intel]
Robert Peirce <bob@[EM  2008-04-23 14:55:05 
Re: awka on Mac OS X 10.4.11 [Intel]
Janis Papanagnou <Jani  2008-04-23 17:29:46 
Re: awka on Mac OS X 10.4.11 [Intel]
Robert Peirce <bob@[EM  2008-04-24 12:46:46 
Re: awka on Mac OS X 10.4.11 [Intel]
Janis <janis_papanagno  2008-04-24 06:28:43 
Re: awka on Mac OS X 10.4.11 [Intel]
pk <pk@[EMAIL PROTECTE  2008-04-24 15:42:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 4:06:56 CDT 2008.