help-octave
[Top][All Lists]
Advanced

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

i+++j


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

In pushing my math limits, I stumbled upon

i+++j

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: 
http://octave.1599824.n4.nabble.com/i-j-tp4432923p4432923.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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