help-octave
[Top][All Lists]
Advanced

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

Re: What's the correct order of things in a file? (beginner's question)


From: John W. Eaton
Subject: Re: What's the correct order of things in a file? (beginner's question)
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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]