listing functions in a package
David Bateman
David.Bateman at motorola.com
Fri Feb 15 03:01:08 CST 2008
c. wrote:
> Hi,
> Do you think it would make sense to have a command to
> list all functions in a package as done by the attached patch?
> This would be similar to the functionality of
>
> help <toolbox name>
>
> in matlab.
> If this option was already available or you
> do not find in useful please just ignore this message.
>
> c.
>
> P.s. it's the first time ever I use mercurial,
> so I wonder if this is the correct way to send patches
>
>
>
Sure why not.. There was a request for a method to return where a
package is installed and whether it is loaded in January as well. So if
this feature is added it would make sense to have the feature also
address that. What I would suggest is something like
list_functions = pkg("describe",<package>)
returns an error if the package is not installed but returns the
function list even if the package is not loaded
[state, list_functions] = pkg("describe", <package>)
also returns a flag of the state of the package which can be
"installed", "loaded", "not installed". This doesn't return an error if
the package is not installed.
Regards
David
--
David Bateman David.Bateman at motorola.com
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
More information about the Octave-maintainers
mailing list