From help-octave-request at bevo dot che dot wisc dot edu Thu Jan 27 01:32:04 2000 Subject: Suggestion: add do-enddo(condition) From: "John W. Eaton" To: Thomas Walter Cc: help-octave at bevo dot che dot wisc dot edu Date: Thu, 27 Jan 2000 01:32:20 -0600 (CST) On 19-Oct-1999, Thomas Walter 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 -----------------------------------------------------------------------