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 UAA22395; Thu, 30 Oct 2003 20:20:41 +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 UAA22378 for ; Thu, 30 Oct 2003 20:20:40 +0100 (MET) Received: from jalapeno.cc.columbia.edu (jalapeno.cc.columbia.edu [128.59.59.238]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h9UJKd122098 for ; Thu, 30 Oct 2003 20:20:39 +0100 (MET) Received: from tw304h3.cpmc.columbia.edu (tw304h3.cpmc.columbia.edu [156.111.84.180]) (user=ot14 mech=LOGIN bits=0) by jalapeno.cc.columbia.edu (8.12.10/8.12.10) with ESMTP id h9UJKbNx023057 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Thu, 30 Oct 2003 14:20:38 -0500 (EST) From: Oleg Trott To: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Int overflow in literals Date: Thu, 30 Oct 2003 14:20:16 -0500 User-Agent: KMail/1.5.4 References: <1067522012.5880.6.camel@qrnik> <3FA14C4C.2010608@baretta.com> <3FA15194.DAA6045F@decis.be> In-Reply-To: <3FA15194.DAA6045F@decis.be> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200310301420.17420.oleg_trott@columbia.edu> X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.35 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; oleg:01 oleg:01 caml-list:01 overflows:01 silently:01 int:01 arithmetic:01 arithmetic:01 overflow:02 literals:02 exception:02 mean:05 mod:07 i'm:07 curious:08 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I'm also curious if raising an exception in case of arithmetic overflows instead of silently accepting them would have a significant performance impact on modern CPUs - few, if anyone, mean to do mod 2^31 arithmetic. -- Oleg Trott ------------------- 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