help-octave
[Top][All Lists]
Advanced

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

calling a function within a multi-function file


From: John W. Eaton
Subject: calling a function within a multi-function file
Date: Wed, 4 May 2005 14:36:05 -0400

On  1-May-2005, Brian Blais wrote:

| I could use the source command, but then I have to do that
| manually every time I change the file.

If you want to simulate "packages" similar to those used by other
languages, in which multiple functions are grouped together in a
single file, then it might not be so bad to have to explicity load the
new version of the package if it changes while the interpreter is
already running.

I think that the auto-(re)loading feature of Matlab is maybe more of a
bug rather than a feature.  It's not good for performance to have to
check the disk repeatedly to see if a function has changed.

What do you gain by putting two public functions (I'd consider them
both to be public if you want to call both of them directly) in a
single file?

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]