From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: ratio implementation Date: Fri, 17 Oct 2003 17:42:44 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <3F250809.9030108@ccrma.stanford.edu> <87smmyibk7.fsf@zagadka.ping.de> <3F6637EC.7010004@dirk-herrmanns-seiten.de> <3F66F68B.3070100@ccrma.stanford.edu> <3F6A1F1A.8000507@dirk-herrmanns-seiten.de> <87pth9cbmt.fsf@zagadka.ping.de> <3F8A853D.1020708@ccrma> <3F8D4456.40801@ccrma> <877k33gakw.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066406644 18160 80.91.224.253 (17 Oct 2003 16:04:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2003 16:04:04 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Oct 17 18:04:02 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AAX53-00047N-00 for ; Fri, 17 Oct 2003 18:04:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AAX3R-0002CR-4Q for guile-devel@m.gmane.org; Fri, 17 Oct 2003 12:02:17 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AAWsU-00070I-0E for guile-devel@gnu.org; Fri, 17 Oct 2003 11:50:58 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AAWrp-0006j9-6D for guile-devel@gnu.org; Fri, 17 Oct 2003 11:50:48 -0400 Original-Received: from [129.217.163.1] (helo=mail.dt.e-technik.uni-dortmund.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AAWke-0004lC-ME for guile-devel@gnu.org; Fri, 17 Oct 2003 11:42:53 -0400 Original-Received: from troy.dt.e-technik.uni-dortmund.de (troy.dt.e-technik.uni-dortmund.de [129.217.163.17]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 5426810F6A; Fri, 17 Oct 2003 17:42:45 +0200 (CEST) Original-Received: by troy.dt.e-technik.uni-dortmund.de (Postfix, from userid 520) id BC88FB997; Fri, 17 Oct 2003 17:42:44 +0200 (CEST) Original-To: Rob Browning In-Reply-To: <877k33gakw.fsf@raven.i.defaultvalue.org> (Rob Browning's message of "Fri, 17 Oct 2003 10:14:55 -0500") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2899 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2899 Rob Browning writes: > Marius Vollmer writes: > >> [...] People who have assumed that >> inexact->exact always returns an integer need to think again (I'm >> afraid I'm one of them...). > > Yep, I'm sure there are plenty of people in that situation. I suspect > it's been used heavily in places where a (C) function require an > integer argument, i.e. (foo (inexact->exact (round x))). Though as > long as (inexact->exact (round x)) is guaranteed to return an integer, > perhaps that's sufficient. (inexact->exact (round x)) is OK, but just (inexact->exact x) and assuming that inexact->exact implicitely rounds to an integer will break. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel