[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tmp=0; tmp+1:(tmp+=5)
From: |
John W. Eaton |
Subject: |
tmp=0; tmp+1:(tmp+=5) |
Date: |
Mon, 23 Jul 2001 15:21:14 -0500 |
On 21-Jul-2001, Etienne Grossmann <address@hidden> wrote:
| I would like to know whether the in a range "a:b", the left operand
| is always evaluated before the second. That is, can I do :
|
| tmp=0; tmp+1:(tmp+=5)
|
| and expect to get 1:5. I didn't find where in the docs the order of
| evaluation is specified.
|
| With 2.1.34, this works. Is it an undocumented feature? Can I expect
| it to work w/ future versions?
I don't have any plans to change this behavior, but I also don't plan
to guarantee that it will always work this way, so you should probalby
not depend on it.
jwe
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------