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 VAA21658; Mon, 26 Jul 2004 21:49:25 +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 VAA21391 for ; Mon, 26 Jul 2004 21:49:24 +0200 (MET DST) Received: from mwinf0301.wanadoo.fr (smtp3.wanadoo.fr [193.252.22.28]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i6QJnOEV011696 for ; Mon, 26 Jul 2004 21:49:24 +0200 Received: from Galois (Mix-Strasbourg-209-4-10.w80-9.abo.wanadoo.fr [80.9.107.10]) by mwinf0301.wanadoo.fr (SMTP Server) with ESMTP id 84D764007FD for ; Mon, 26 Jul 2004 21:49:23 +0200 (CEST) Received: from evariste by Galois with local (Exim 3.36 #1 (Debian)) id 1BpAH9-00051e-00 for ; Mon, 26 Jul 2004 20:32:39 +0200 Date: Mon, 26 Jul 2004 20:32:39 +0200 From: =?iso-8859-1?Q?S=E9bastien?= Hinderer To: caml-list@inria.fr Subject: Re: [Caml-list] 32-bit unsigned integers Message-ID: <20040726183239.GA19307@galois> Mail-Followup-To: caml-list@inria.fr References: <20040726171517.GA19032@galois> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Miltered: at nez-perce with ID 41056044.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ens-lyon:01 caml-list:01 val:01 printf:01 printf:01 -bit:01 ocaml:01 int:01 int:01 behaviour:01 unit:03 unsigned:03 sebastien:03 sebastien:03 let:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi again, Thank you very much for your help ! For sure, this new language feature is great. However, I have another question: With OCaml 3.08.0 : # let max = 0xffffffffl;; val max : int32 = -1l # Printf.printf "%lu\n" max;; 4294967295 - : unit = () # 4294967295l;; Integer literal exceeds the range of representable integers of type int32 Is this error the expected behaviour ? Thanks in advance, Sébastien. ------------------- 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