From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA03959; Wed, 7 Apr 2004 22:34:21 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA04554 for ; Wed, 7 Apr 2004 22:34:20 +0200 (MET DST) Received: from mg.ihep.su (mg.ihep.su [194.190.161.38]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i37KZCjq022628 for ; Wed, 7 Apr 2004 22:35:12 +0200 Received: by mg.ihep.su (Postfix, from userid 65436) id 5A19AC45A5; Thu, 8 Apr 2004 00:34:18 +0400 (MSD) Received: from mg.ihep.su (localhost [127.0.0.1]) by mg.ihep.su (Postfix) with SMTP id BC191C45A5; Thu, 8 Apr 2004 00:34:17 +0400 (MSD) X-Mailbox-Line: From vsl@ontil.ihep.su Thu Apr 8 00:34:17 2004 Received: from ontil.ihep.su (ontil.ihep.su [194.190.161.63]) by mg.ihep.su (Postfix) with ESMTP id BDC98C49FA; Thu, 8 Apr 2004 00:33:41 +0400 (MSD) Received: by ontil.ihep.su (Postfix, from userid 1001) id 5E14710FAB; Thu, 8 Apr 2004 01:32:41 +0400 (MSD) Received: from localhost (localhost [127.0.0.1]) by ontil.ihep.su (Postfix) with ESMTP id 5D25810FAA; Thu, 8 Apr 2004 01:32:41 +0400 (MSD) Date: Thu, 8 Apr 2004 01:32:41 +0400 (MSD) From: Vitaly Lugovsky To: John Goerzen Cc: caml-list@inria.fr Subject: Re: [Caml-list] Dynamically evaluating OCaml code In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=2.8 required=5.0 tests=IN_REP_TO,QL_SENT_FROM_MY_DOMAINS version=2.20 X-Spam-Level: ** X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; vitaly:01 lugovsky:01 ontil:01 ihep:01 caml-list:01 dynamically:01 python:01 python's:01 python:01 obsoleted:01 powerfull:01 compiler:01 evaluates:01 ocaml:01 ocaml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Keywords: X-UID: 110 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 caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners