From bug-request at octave dot org Thu Apr 6 14:39:12 2006 Subject: Re: autoload From: "John W. Eaton" To: David dot Bateman at motorola dot com Cc: Paul Kienzle , octave bug mailing list Date: Thu, 6 Apr 2006 15:38:38 -0400 On 6-Apr-2006, John W. Eaton wrote: | Also, after making these changes, I remembered that scripts are not | entered on the call stack because script files are not functions, so | something like the following fails | | foo.m: | ----- | function foo () | bar; | | bar.m: | ----- | mfilename (); | | foo () | ==> foo | | (I think it should report "bar"). Perhaps we need a dummy function | object that can be used for scripts to at least hold file names and | some other information so we could store it on the call stack. I'll | try to see if I can make that work in the next few days. This is done now and the changes are checked in. 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 -------------------------------------------------------------