[Top][All Lists]

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


From: Muhali
Subject: i+++j
Date: Wed, 29 Feb 2012 12:48:33 -0800 (PST)

In pushing my math limits, I stumbled upon


octave apparently does this:

octave:> i=j=0
i = 0
octave:> k=i+++j; disp([i j k]) ;
   1   0   0
octave:> k=i+++j; disp([i j k]) ;
   2   0   1

that is, doing first i++ and then adding j which always remains 0. It could
be the other way round (leaving i and increasing j). So, is there a
rationale for this, and should it not be as in matlab which does nothing,
not even complain, no matter how many additional +'s are used?

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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