The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

trying to figure out why

Posted by cristi on February 23, 2002 at 9:15 PM


kinda late reply, but we ran into the same problem. i guess it it because the value of "i" is saved on the stack for evaluating the expression, then "i++" is executed (i will become 11), after which the value of the expresion on the stack is yeldied to 'i" - that is 10. it is the best i could came up with.... i was looking for an expret oppinion on this. if someone has an answer please e-mail me.

thanks
--cristi



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us