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 IAA17808; Tue, 26 Nov 2002 08:06:29 +0100 (MET) 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 IAA18062 for ; Tue, 26 Nov 2002 08:06:28 +0100 (MET) Received: from speakeasy.org (dsl081-017-141.sea1.dsl.speakeasy.net [64.81.17.141]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gAQ76Q105106 for ; Tue, 26 Nov 2002 08:06:27 +0100 (MET) Received: (from shawnw@localhost) by speakeasy.org (8.10.1/8.10.1) id gAQ7AHZ03462 for caml-list@inria.fr; Mon, 25 Nov 2002 23:10:17 -0800 Date: Mon, 25 Nov 2002 23:10:16 -0800 From: Shawn Wagner To: caml-list@inria.fr Subject: Re: [Caml-list] int32/int64 literals in next release? Message-ID: <20021125231016.E23326@speakeasy.org> Mail-Followup-To: caml-list@inria.fr References: <200211132203.gADM3nN14766@plinky.bolt-action.com> <200211132142.WAA19709@pauillac.inria.fr> <20021113234425.C23757@speakeasy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021113234425.C23757@speakeasy.org>; from shawnw@speakeasy.org on Wed, Nov 13, 2002 at 11:44:25PM -0800 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Nov 13, 2002 at 11:44:25PM -0800, Shawn Wagner wrote: > On Wed, Nov 13, 2002 at 10:42:36PM +0100, Pierre Weis wrote: > > Hi, > > > > > Is there any chance some way of inputing int32/int64 literals can be > > > added to the compiler for this next release? > > > > AFAIK, this is fairly hight in the todo list. > > > > Ask, and ye shall recieve (In other words, I had a few hours to kill and > have been wanting this feature myself). > > http://raevnos.pennmush.org/code/litint306-1.diff.gz > > or http://raevnos.pennmush.org/code/ocaml.html in case the direct URL > doesn't work, as I might put up newer versions (-2, -3, etc.) if I fix any of > the problems noted below. > > Uses a suffix to the number to indicate type, like in C. The actual suffixes > are taken from the printf formats. > > Problems I know about already: > > > * The Foo.of_string functions aren't handling the suffixes, even though I > changed ints.c:parse_long() and ints.c:int64_of_string() to do so, and they > work when called through gdb. Do ocamlrun and the native compiler use > another set of functions for the conversions? > This, at least, I figured out. Helps to use the right version of ocamlrun. Silly me. Going to try poking at getting it to compile camlp4 again when I have the time, possibly next week, if there's interest. Ocaml developers? -- Shawn Wagner shawnw@speakeasy.org ------------------- 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