From: "Ludovic Coquelle" <lcoquelle@gmail.com>
To: caml-list@yquem.inria.fr
Subject: invoke function from its name as string
Date: Thu, 13 Mar 2008 13:04:35 +0800 [thread overview]
Message-ID: <d6c7b34d0803122204x18f1cf6fke6f471899a9b5170@mail.gmail.com> (raw)
In-Reply-To: <d6c7b34d0803122107i392eabc6rea0570d8c4f05452@mail.gmail.com>
(re-send as it seems it didn't go through)
First, hello everyone as it is my first message to this list ;)
I'm trying to solve this problem:
I have a module name and function name in string variables,
and I would like to call this function, like :
let mod = "MyMod" in
let fn = "my_fun" in
what_come_here mod fn
Can this problem be solved?
Was thinking that camlp4 could help ... not sure as it change the
syntax tree but I don't see how to get access to module name 'mod'.
Any pointer are greatly appreciated :)
thanks
next prev parent reply other threads:[~2008-03-13 5:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-13 4:07 Ludovic Coquelle
2008-03-13 5:04 ` Ludovic Coquelle [this message]
2008-03-13 6:49 ` [Caml-list] " Andrej Bauer
2008-03-13 7:10 ` Ludovic Coquelle
2008-03-13 16:41 ` Andrej Bauer
2008-03-13 17:03 ` Andrew Gacek
2008-03-14 0:53 ` Ludovic Coquelle
2008-03-13 9:44 ` Berke Durak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d6c7b34d0803122204x18f1cf6fke6f471899a9b5170@mail.gmail.com \
--to=lcoquelle@gmail.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox