finding exported clauses
Michael McDaniel
erlang@REDACTED
Thu Dec 8 17:41:43 CET 2005
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