From: Andrej Bauer <Andrej.Bauer@fmf.uni-lj.si>
To: caml-list@yquem.inria.fr
Cc: lcoquelle@gmail.com
Subject: Re: [Caml-list] invoke function from its name as string
Date: Thu, 13 Mar 2008 07:49:54 +0100 [thread overview]
Message-ID: <47D8CE92.2020009@fmf.uni-lj.si> (raw)
In-Reply-To: <d6c7b34d0803122204x18f1cf6fke6f471899a9b5170@mail.gmail.com>
Ludovic Coquelle wrote:
> (re-send as it seems it didn't go through)
It did.
> 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?
If you are new to ocaml then we can help you much better if you explain
what problem you are trying to solve. It looks like you are trying to
write in Ocaml something that is common in Python/perl/shell. There is
likely to be a different, better way of doing the same thing in Ocaml.
Best regards,
Andrej
next prev parent reply other threads:[~2008-03-13 6:47 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
2008-03-13 6:49 ` Andrej Bauer [this message]
2008-03-13 7:10 ` [Caml-list] " 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=47D8CE92.2020009@fmf.uni-lj.si \
--to=andrej.bauer@fmf.uni-lj.si \
--cc=Andrej.Bauer@andrej.com \
--cc=caml-list@yquem.inria.fr \
--cc=lcoquelle@gmail.com \
/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