[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File extensions in __list_functions__
From: |
John W. Eaton |
Subject: |
Re: File extensions in __list_functions__ |
Date: |
Tue, 26 May 2009 12:02:10 -0400 |
On 26-May-2009, John W. Eaton wrote:
| OK. Currently, __list_functions__ (DIR) is just calling
|
| string_vector fl = load_path::files (dir);
|
| so it gets a list of all files, not just .m, .oct, and .mex files.
| Maybe we need a
|
| load_path::fcn_names (DIR)
|
| function that returns the names of the functions defined in a
| particular directory, regardless of whether DIR is actually in the
| load path. This function would just be in the load_path class becuase
| it seems to be a related function.
|
| I'll add this function and fix __list_functions__ (DIR) unless you
| object.
Sorry, I misread what load_path::files is doing. It is returning only
function files. So I added an optional argument to allow it to omit
file extensions. The change is checked in here:
http://hg.savannah.gnu.org/hgweb/octave/rev/95445f9f5976
Should this go in 3.2.0?
jwe