help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Are two symbols `equal' iff they are `eq'?


From: Michael Heerdegen
Subject: Re: Are two symbols `equal' iff they are `eq'?
Date: Sun, 09 Aug 2015 16:03:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Marcin Borkowski <address@hidden> writes:

> I cannot make two symbols which would be `equal' but not `eq'.

Unlike what your subject says, you seem to want to know

  Are two symbols `eq' iff they are `equal'?

Which is the more interesting question.

> (defun eq (a b) (message "Haha!))
> (equal 'a 'a)

This is not a good test when the call to `eq' is done from C.  So, a
negative result doesn't mean anything.


Michael.




reply via email to

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