[Top][All Lists]

[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.


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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