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 5 of 8 Topic 2225 of 2241
Post > Topic >>

Re: awka on Mac OS X 10.4.11 [Intel]

by Janis Papanagnou <Janis_Papanagnou@[EMAIL PROTECTED] > Apr 23, 2008 at 05:29 PM

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


Janis




 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 3:53:57 CDT 2008.