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 JAA23661; Fri, 11 Oct 2002 09:50:38 +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 JAA23742 for ; Fri, 11 Oct 2002 09:50:37 +0200 (MET DST) Received: from mel-rto6.wanadoo.fr (smtp-out-6.wanadoo.fr [193.252.19.25]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g9B7oaD19936; Fri, 11 Oct 2002 09:50:36 +0200 (MET DST) Received: from mel-rta7.wanadoo.fr (193.252.19.61) by mel-rto6.wanadoo.fr (6.5.007) id 3DA24D4D0024FF09; Fri, 11 Oct 2002 09:50:36 +0200 Received: from iliana (217.128.59.170) by mel-rta7.wanadoo.fr (6.5.007) id 3DA24BE60023A76D; Fri, 11 Oct 2002 09:50:36 +0200 Received: from luther by iliana with local (Exim 3.36 #1 (Debian)) id 17zuiW-0000WX-00; Fri, 11 Oct 2002 10:00:16 +0200 Date: Fri, 11 Oct 2002 10:00:16 +0200 To: "Scott J," Cc: Xavier Leroy , caml-list@inria.fr Subject: Re: [Caml-list] Runtime overflow and what to do Message-ID: <20021011080016.GA1974@iliana> References: <00bd01c2706d$e7cd68e0$0100a8c0@janxp> <200210101521.RAA0000032708@beaune.inria.fr> <20021010181323.GA1922@iliana> <20021010205716.A8990@pauillac.inria.fr> <021501c270aa$ca400660$0100a8c0@janxp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <021501c270aa$ca400660$0100a8c0@janxp> User-Agent: Mutt/1.4i From: Sven LUTHER Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, Oct 11, 2002 at 12:17:15AM +0200, Scott J, wrote: > Hi, > > So it is not easy, perhaps even impossible if the processor doesn't set a > flag . > > e.g. fact n begins first with a lis of negative numbers (after overflow) > then comes again a list with positive numbers and then it remains = 0 No, it is easy, but you have to check at each iteration, as was proposed here previously. Friendly, Sven Luther ------------------- 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