unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* type-of semantics unclear for records
@ 2017-04-04 22:12 Paul Eggert
  2017-04-05  1:10 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Eggert @ 2017-04-04 22:12 UTC (permalink / raw)
  To: Emacs development discussions

The recently-changed behavior of 'type-of' causes it to disagree with 
its documentation when the type of a record is itself a record. For 
example, the documentation implies that (eq X (type-of (record X))) 
should be t for all X, but this is not the case when X is (record 'a 
'b), because in this case (type-of (record X)) returns b.

I assume the behavior is intended to support subclassing of some sort; 
if so the subclassing should be documented (or at least the doc should 
say that behavior is undefined if the record type is not a symbol), and 
if not the behavior should be changed to agree with the doc.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-04-06 12:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-04 22:12 type-of semantics unclear for records Paul Eggert
2017-04-05  1:10 ` Stefan Monnier
2017-04-05  1:45   ` Paul Eggert
2017-04-05  5:24     ` Lars Brinkhoff
2017-04-05  6:51       ` Lars Brinkhoff
2017-04-05 14:10     ` Stefan Monnier
2017-04-06  7:40       ` Lars Brinkhoff
2017-04-06 12:59         ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).