From help-request at octave dot org Mon Jun 13 19:52:23 2005 Subject: Re: What's the correct order of things in a file? (beginner's question) From: "John W. Eaton" To: Bill Denney Cc: David Collett , help@octave.org Date: Mon, 13 Jun 2005 20:50:44 -0400 On 13-Jun-2005, Bill Denney wrote: | On Mon, 13 Jun 2005, David Collett wrote: | | > Can you use either? Are there different "flavors" of Octave that use | > different commands? | | I believe that endfor, endfunction, are older variants. They're still | valid, but you can just use end for all types of end (that I know of) now. If you are writing code for Octave, I think it is better to use the specific end keywords because then the intent is clearer and error messages about mismatched end tokens can be easier to understand. jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------