guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in documentation for eq? ?


From: David Kastrup
Subject: Bug in documentation for eq? ?
Date: Wed, 20 Jun 2012 12:40:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

I read

     Numbers and characters are not equal to any other object, but the
     problem is they're not necessarily `eq?' to themselves either.
     This is even so when the number comes directly from a variable,

          (let ((n (+ 2 3)))
            (eq? n n))       => *unspecified*

I think that is wrong.  A variable reference can't really be anything
except eq? to itself in my opinion.  As long as a Scheme object is not
being manipulated in any manner, it should stay eq? to itself.

What am I missing?

-- 
David Kastrup




reply via email to

[Prev in Thread] Current Thread [Next in Thread]