From help-octave-request at bevo dot che dot wisc dot edu Thu Jan 27 18:23:58 2000 Subject: Re: Suggestion: add do-enddo(condition) From: "Johan Kullstam" To: help-octave at bevo dot che dot wisc dot edu Date: 27 Jan 2000 19:24:04 -0500 "John W. Eaton" writes: > On 27-Jan-2000, John W. Eaton wrote: > > | So, we are left with two cases [...] > > | do ... while (condition) [...] > > | do ... until (condition) [...] > > | Implementing this would not be hard, if anyone is interested. > > OK, since it was relatively easy, I added this to the current > development sources (in the CVS tree now, expect it to show up in a > new bleeding-edge tar file soon). > > I'm still open to arguments for using `repeat' instead of `do'. i prefer "repeat/until". besides an irrational fondness for pascal, i think it makes for clearer code. the octave parser can easily see the context of the word "while". but what about 1) the programmer/user, 2) emacs (octave.el)? repeat/until would be easy and unabiguous for all of the code readers. -- J o h a n K u l l s t a m [kullstam at ne dot mediaone dot net] Don't Fear the Penguin! ----------------------------------------------------------------------- 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 -----------------------------------------------------------------------