[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a=0; a([1,1])++ -> a == 2
From: |
Etienne Grossmann |
Subject: |
Re: a=0; a([1,1])++ -> a == 2 |
Date: |
Thu, 3 Aug 2000 08:15:39 GMT |
Hello,
========================================
a=0; b = a([1,1])++ ;
should be equivalent to
a=0; b=a([1,1]); a([1,1])=a([1,1])+1;
whereas
a=0; b = ++a([1,1]) ;
should be equivalent to
a=0; a([1,1])=a([1,1])+1; b=a([1,1]);
=======================================
You are right; I was confusing infix ++ and postfix ++.
Etienne
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------