caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* invoke function from its name as string
@ 2008-03-13  4:07 Ludovic Coquelle
  2008-03-13  5:04 ` Ludovic Coquelle
  2008-03-13  9:44 ` Berke Durak
  0 siblings, 2 replies; 8+ messages in thread
From: Ludovic Coquelle @ 2008-03-13  4:07 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-03-14  0:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-13  4:07 invoke function from its name as string Ludovic Coquelle
2008-03-13  5:04 ` Ludovic Coquelle
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).