[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tmp=0; tmp+1:(tmp+=5)
From: |
Etienne Grossmann |
Subject: |
tmp=0; tmp+1:(tmp+=5) |
Date: |
Sat, 21 Jul 2001 11:05:17 +0100 |
User-agent: |
WEMI/1.13.7 (Shimada) FLIM/1.13.2 (Kasanui) Emacs/20.7 (i386-debian-linux-gnu) (with unibyte mode) |
Hello,
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?
Cheers,
Etienne
-------------------------------------------------------------
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
-------------------------------------------------------------
- tmp=0; tmp+1:(tmp+=5),
Etienne Grossmann <=