guile-user
[Top][All Lists]
Advanced

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

Are `eqv?' and `eq?' the same?


From: Alexandru Cojocaru
Subject: Are `eqv?' and `eq?' the same?
Date: Sun, 25 Aug 2013 13:39:44 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

Hi,

from the GUILE manual [0]:


    `eq?
' tests just for the same object (essentially a pointer comparison)
    `eqv?'
extends `eq?' to look at the value of numbers and characters.

this is what I get:

    scheme@(guile-user)> (eq? 3 (+ 1 2))
    $1 = #t

is this behavior intentional or some type of bug?

Best regards,
Alexandru Cojocaru

[0]: https://www.gnu.org/software/guile/manual/html_node/Equality.html

reply via email to

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