finding exported clauses

Rohini V rohini@REDACTED
Fri Dec 9 08:14:17 CET 2005


Can try erlang:loaded().
It lists all loaded Erlang modules.

To check the exported functions, try
m(modulename).

-----Original Message-----
From: Michael McDaniel [mailto:erlang@REDACTED]
Sent: Thursday, December 08, 2005 10:12 PM
To: erlang-questions@REDACTED
Subject: Re: finding exported clauses


On Wed, Dec 07, 2005 at 12:44:04AM -0800, Michael McDaniel wrote:
> On Tue, Dec 06, 2005 at 08:31:21PM -0500, Tom Whitcomb wrote:
> > Hi,
> >
> > Is there a way I find the exported clauses and their modules in an
erlang shell environment.  Maybe something like:
> >
> > getExportedClauses(Module) -> [clause]
> > getExportedClauses() -> [{module,clause}]
> >
> > thanks for the help.
> >
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> look at documentation for modules shell, code, c
>
> erl> rp(code:all_loaded()).
>
> erl> c:m(code).
>
>
> ~Michael
>
>
> <znip>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I never saw that my first reply came through to the list.
It does include a bit of info I had not read in the other
responses so I have sent it again.


~Michael
Portland, Oregon, USA







More information about the erlang-questions mailing list