[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Suggestion: add do-enddo(condition)
From: |
John W. Eaton |
Subject: |
Suggestion: add do-enddo(condition) |
Date: |
Thu, 27 Jan 2000 01:32:20 -0600 (CST) |
On 19-Oct-1999, Thomas Walter <address@hidden> wrote:
| for some programing logic, I want to suggest to add a
|
| do
| ...
| enddo (CONDITION)
|
| to the octave interpreter.
|
| Pros and cons?
Do you expect this to execute the loop as long as CONDITION is true,
with a minimum of one trip through? If so, then I think
do
while (CONDITION)
would make that intention clearer, but it might also make it hard to
spot errors, since `while (CONDITION)' is already used to begin
loops. (I don't think this is such a problem for C since braces are
used to delimit the body of the loop.)
I don't recall seeing any responses to this message, so maybe there
are not very many people who have strong feelings about it one way or
the other. Is anyone else interested in having this construct
available in Octave?
Thanks,
jwe
-----------------------------------------------------------------------
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
-----------------------------------------------------------------------
- Suggestion: add do-enddo(condition),
John W. Eaton <=
- Re: Suggestion: add do-enddo(condition), Thomas Walter, 2000/01/27
- Re: Suggestion: add do-enddo(condition), A. Scottedward Hodel, 2000/01/27
- Re: Suggestion: add do-enddo(condition), John W. Eaton, 2000/01/27
- Re: Suggestion: add do-enddo(condition), John W. Eaton, 2000/01/27
- Re: Suggestion: add do-enddo(condition), Johan Kullstam, 2000/01/27
- Re: Suggestion: add do-enddo(condition), Joao Cardoso, 2000/01/27
- Re: Suggestion: add do-enddo(condition), John W. Eaton, 2000/01/27
- Re: Suggestion: add do-enddo(condition), Ted Harding, 2000/01/27
- Message not available
- Re: Suggestion: add do-enddo(condition), Johan Kullstam, 2000/01/28
- Re: Suggestion: add do-enddo(condition), Francesco Potorti`, 2000/01/28