From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 582F3BB9C for ; Thu, 22 Dec 2005 06:59:07 +0100 (CET) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jBM5x6IV001194 for ; Thu, 22 Dec 2005 06:59:06 +0100 Received: by zproxy.gmail.com with SMTP id z31so311905nzd for ; Wed, 21 Dec 2005 21:59:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=axnhAQmrpYnfcsAQjYp95nlzB9O3ow4bsdGalPTVnVEcSNRkdqlrAF7rQi+T5A9iCV4fE0ysM0KiWRrD0C4IkiwRCE8JAST1qgp7vjMldL2oaPlq7J4qLp4TjFLjuZvMIzcCMGDc4fz59uqZ5nmNRT9IC6F23/wK0ONk6IgLW4Q= Received: by 10.64.251.5 with SMTP id y5mr53717qbh; Wed, 21 Dec 2005 21:59:05 -0800 (PST) Received: by 10.65.23.16 with HTTP; Wed, 21 Dec 2005 21:59:05 -0800 (PST) Message-ID: Date: Thu, 22 Dec 2005 18:59:05 +1300 From: Jonathan Roewen To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] toplevellib.cma broken? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Miltered: at nez-perce with ID 43AA40AA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 toplevellib:01 oops:01 ocaml:01 ocaml:01 toplevellib:01 3.09.0:01 toploop:01 toplevel:01 lexing:01 toploop:01 toplevel:01 3.09.0:01 lexing:01 parsing:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 Oops, mouse in wrong place on click =3DP Anyways, to continue on with my email... I even tried with ocaml: jonathan@moonbeam:~$ ocaml toplevellib.cma Objective Caml version 3.09.0 # Toploop.initialize_toplevel_env();; - : unit =3D () # let eval txt =3D let lb =3D (Lexing.from_string txt) in let phr =3D !Toploop.parse_toplevel_phrase lb in Toploop.execute_phrase true Format.std_formatter phr;; >> Fatal error: eval unbound at toplevel Fatal error: exception Misc.Fatal_error jonathan@moonbeam:~$ ocaml toplevellib.cma Objective Caml version 3.09.0 # let eval txt =3D let lb =3D (Lexing.from_string txt) in let phr =3D !Toploop.parse_toplevel_phrase lb in Toploop.execute_phrase true Format.std_formatter phr;; >> Fatal error: eval unbound at toplevel Fatal error: exception Misc.Fatal_error It seems ocaml 3.09.0 has broken toplevellib.cma??? Jonathan On 12/22/05, Jonathan Roewen wrote: > Hi, > > I'm trying to use toplevellib in my kernel, and I'm having some -very- > weird problems. > > Here's a sample session on my kernel: > > caml> 45;; > - : int =3D 45 > caml> print_int 4;; > Error parsing/evaluating expression: Typecode.Error(_,_) > caml> 45.67;; > Error parsing/evaluating expression: Failure("float_of_string") > caml> 45;; > Error parsing/evaluating expression: Failure("float_of_string") >