unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joost Kremers <joost.m.kremers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Are two symbols `equal' iff they are `eq'?
Date: 9 Aug 2015 00:31:08 GMT	[thread overview]
Message-ID: <slrnmsd7qc.5sm.joost.m.kremers@j.kremers4.news.arnhem.chello.nl> (raw)
In-Reply-To: mailman.7993.1439079676.904.help-gnu-emacs@gnu.org

Marcin Borkowski wrote:
> As in the subject; neither the manual nor the docstring for `equal' are
> very clear on this.  (The docstring for `equal' says: "Symbols must
> match exactly.", which -- I would guess -- means `eq', but I'm not
> sure.)

Quoting the description of `equal` in the Elips manual:

,----
|  -- Function: equal object1 object2
|      This function returns `t' if OBJECT1 and OBJECT2 have equal
|      components, and `nil' otherwise.  Whereas `eq' tests if its
|      arguments are the same object, `equal' looks inside nonidentical
|      arguments to see if their elements or contents are the same.  So,
|      if two objects are `eq', they are `equal', but the converse is not
|      always true.
`----

(info "(elisp) Equality Predicates")

Seems to me to be very clear: objects can be `equal` without being `eq`.
(But they cannot be `eq` if they're not `equal`.)



-- 
Joost Kremers                                   joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


       reply	other threads:[~2015-08-09  0:31 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7993.1439079676.904.help-gnu-emacs@gnu.org>
2015-08-09  0:31 ` Joost Kremers [this message]
2015-08-09  5:16   ` Are two symbols `equal' iff they are `eq'? Ian Zimmerman
2015-08-09  7:30     ` Marcin Borkowski
2015-08-09 14:05       ` Michael Heerdegen
2015-08-09 15:10         ` Marcin Borkowski
2015-08-09 15:19           ` Eli Zaretskii
2015-08-09 15:45             ` Marcin Borkowski
2015-08-09 18:19               ` Eli Zaretskii
2015-08-09 19:41                 ` Marcin Borkowski
2015-08-10 15:26               ` Nicolas Richard
     [not found]   ` <mailman.8007.1439097407.904.help-gnu-emacs@gnu.org>
2015-08-09  5:21     ` Rusi
2015-08-09  5:33       ` Ian Zimmerman
2015-08-09  7:42   ` Marcin Borkowski
2015-08-09 14:03     ` Michael Heerdegen
2015-08-09 14:42       ` Marcin Borkowski
2015-08-09 14:47         ` Michael Heerdegen
     [not found]   ` <mailman.8011.1439106166.904.help-gnu-emacs@gnu.org>
2015-08-09 15:38     ` Joost Kremers
2015-08-09  0:20 Marcin Borkowski
2015-08-09  1:52 ` Emanuel Berg
2015-08-09  7:44   ` Marcin Borkowski
2015-08-09 15:28 ` Drew Adams
2015-08-09 15:46   ` Marcin Borkowski
2015-08-09 16:38     ` Drew Adams
     [not found]   ` <mailman.8032.1439135226.904.help-gnu-emacs@gnu.org>
2015-08-09 15:59     ` Stefan Monnier

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/emacs/

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

  git send-email \
    --in-reply-to=slrnmsd7qc.5sm.joost.m.kremers@j.kremers4.news.arnhem.chello.nl \
    --to=joost.m.kremers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).