unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Aubrey Jaffer <agj@alum.mit.edu>
Subject: bug in eqv?
Date: Fri, 17 Mar 2006 22:42:55 -0500 (EST)	[thread overview]
Message-ID: <20060318034255.6DF6E1B77C9@home.voluntocracy.org> (raw)

bash-2.05b$ guile --version
Guile 1.8.0 ...
bash-2.05b$ guile
guile> (= 0.0 -0.0)
#t
guile> (eqv? 0.0 -0.0)
#f

According to R5RS section "6.1 Equivalence predicates":

     The `eqv?' procedure returns #t if:

        * OBJ1 and OBJ2 are both numbers, are numerically equal (see
          `=', section *note Numbers::), and are either both exact or
          both inexact.

Because (= 0.0 -0.0) is #t, (eqv? 0.0 -0.0) must be #t.


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


             reply	other threads:[~2006-03-18  3:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-18  3:42 Aubrey Jaffer [this message]
2006-03-21  0:58 ` bug in eqv? Kevin Ryde
2006-03-21 23:52   ` Marius Vollmer
2006-03-24  0:17     ` Aubrey Jaffer
2006-03-24 21:56       ` Kevin Ryde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060318034255.6DF6E1B77C9@home.voluntocracy.org \
    --to=agj@alum.mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).