Hi all! My question pertains to the way that jbase treats pre-increments
Consider the following routine: 0004 PROGRAM MY.MATH 0005 0006 CNT = 3 0007 RES = ++CNT + ++CNT 0008 0009 PRINT 'RES = ':RES 0010 RETURN 0011 END The output result is RES = 10 if i change line 007 to RES = ++CNT + ++CNT + ++CNT, then the output result is RES = 16 Can anybody explain this behaviour? (I expected the first case to output RES = 9 and the second RES = 15) My system configuration: OS : AIX 5.3 jbase : Major 5.0 , Minor 20 , Patch 0364 (Change 85159) Regards -- Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24 To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
