[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: listing functions in a package
From: |
David Bateman |
Subject: |
Re: listing functions in a package |
Date: |
Fri, 15 Feb 2008 10:01:08 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20070914) |
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 address@hidden
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
- listing functions in a package, Carlo de Falco, 2008/02/14
- listing functions in a package, c., 2008/02/14
- Re: listing functions in a package, Søren Hauberg, 2008/02/15
- Re: listing functions in a package,
David Bateman <=
- Re: listing functions in a package, c., 2008/02/18
- Re: listing functions in a package, David Bateman, 2008/02/18
- Re: listing functions in a package, c., 2008/02/18
- Re: [OctDev] listing functions in a package, David Bateman, 2008/02/18
- Re: [OctDev] listing functions in a package, c., 2008/02/19
- Re: [OctDev] listing functions in a package, David Bateman, 2008/02/19
- Re: [OctDev] listing functions in a package, c., 2008/02/19
- Re: [OctDev] listing functions in a package, John W. Eaton, 2008/02/19
- Re: [OctDev] listing functions in a package, c., 2008/02/19
- Re: [OctDev] listing functions in a package, John W. Eaton, 2008/02/19