Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Dynamically evaluating OCaml code
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-07 (20:34)
From: Vitaly Lugovsky <vsl@o...>
Subject: Re: [Caml-list] Dynamically evaluating OCaml code

On Wed, 7 Apr 2004, John Goerzen wrote:

> Hello,
> I am moving from Python to OCaml and one of the things I miss
> is Python's eval() call.  It takes a string representing a bit
> of Python source code, evaluates it, and returns the result.
> I would like to be able to do similar things with OCaml.

 OCaml is a compiler, not interpreter. But, you'll find that this
feature is obsoleted by the partial application - it's a much
more powerfull device then lispish eval, and it can be even a
replacement for a macros.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: