[erlang-questions] Erlang introspection

Pablo Polvorin pablo.polvorin@REDACTED
Wed Nov 26 02:30:03 CET 2008


Hi,
a simple example should be enough to get you started:

Eshell V5.6.4  (abort with ^G)
1> M = string.
string
2> F = to_lower.
to_lower
3> R1 = apply(M,F,["HelLo"]).
"hello"
4> R2 = M:F("HelLo").
"hello"
5>



2008/11/25 Matthew Williams <Matthew_Williams@REDACTED>:
> I'm trying to find information about erlangs support for introspection. I've
> got a program that receives and function name and arguments through a socket
> and I'd like to use this information to make a function call on the module
> that receives it. Can anyone suggest a good starting point for finding out
> how to do this?
>
> Thanks
>
> Matt
> ______________________________________________________________________
> This email may contain privileged or confidential information, which should
> only be used for the purpose for which it was sent by Xyratex. No further
> rights or licenses are granted to use such information. If you are not the
> intended recipient of this message, please notify the sender by return and
> delete it. You may not use, copy, disclose or rely on the information
> contained in it.
>
> Internet email is susceptible to data corruption, interception and
> unauthorised amendment for which Xyratex does not accept liability. While we
> have taken reasonable precautions to ensure that this email is free of
> viruses, Xyratex does not accept liability for the presence of any computer
> viruses in this email, nor for any losses caused as a result of viruses.
>
> Xyratex Technology Limited (03134912), Registered in England & Wales,
> Registered Office, Langstone Road, Havant, Hampshire, PO9 1SA.
>
> The Xyratex group of companies also includes, Xyratex Ltd, registered in
> Bermuda, Xyratex International Inc, registered in California, Xyratex
> (Malaysia) Sdn Bhd registered in Malaysia, Xyratex Technology (Wuxi) Co Ltd
> registered in The People's Republic of China and Xyratex Japan Limited
> registered in Japan.
> ______________________________________________________________________
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list