[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestion: add do-enddo(condition)

From: Jack A Walker
Subject: Re: Suggestion: add do-enddo(condition)
Date: Thu, 27 Jan 2000 09:10:29 -0800

How bout





To:   Thomas Walter <address@hidden>
cc:   address@hidden (bcc: Jack A Walker/BII)
Subject:  Suggestion:  add do-enddo(condition)

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

  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?



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]