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 E8DF3BB9C for ; Thu, 22 Dec 2005 22:46:57 +0100 (CET) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jBMLku3Q004169 for ; Thu, 22 Dec 2005 22:46:57 +0100 Received: by zproxy.gmail.com with SMTP id i11so475847nzh for ; Thu, 22 Dec 2005 13:46:56 -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=Ha6p1NB0Vatkbk4OO7PBJMMFcZxCCC9i/LEf/Eh6T6e7hsdYh0HsLRMgw5yF+Xb6s8u0VBHKHaX+AyIRV7jGed0Iyt8rQdGG5aA9Md2JDLdygLx3JsxGxkANOW8U3T6JL7rCjheN3S5W+c040ziW6vsKdGLlj3ChnfwwMDDWuW0= Received: by 10.64.253.2 with SMTP id a2mr569089qbi; Thu, 22 Dec 2005 13:46:55 -0800 (PST) Received: by 10.65.23.16 with HTTP; Thu, 22 Dec 2005 13:46:55 -0800 (PST) Message-ID: Date: Fri, 23 Dec 2005 10:46:55 +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 43AB1ED1.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 toplevellib:01 pervasives:01 debugging:01 toploop:01 genprintval:01 pervasives:01 disseminate:98 functions:01 functions:01 strings:01 cma:01 int:01 int:01 defined: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 > But I have one really weird problem: all the symbols in Pervasives > aren't defined. > > Also: it seems to choke on strings, and invoking functions. > > For example: "Base_io.print_int 45;;" gets printed, but then it locks up. Ahh, I'm making progress on the debugging front. Around line 237 in toploop.ml: let execute_phrase ... =3D ... match res with | Result v -> if print_outcome then | [Tstr_eval exp] -> let outv =3D outval_of_value newenv v exp.exp_type in .... The outval_of_value is apparently getting stuck in an infinite loop. I've yet to disseminate Genprintval module... but any clues while I'm searching would be helpful =3D) This happens on entering: `"bob";;' and `Base_io.print_int 45;;' at the pro= mpt. (And yes, the floating point is my lack of an implementation of strtod). BTW: Base_io is my replacement of Pervasives IO functions. Jonathan