all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Brinkhoff <lars@nocrew.org>
To: emacs-devel@gnu.org
Subject: Re: type-of semantics unclear for records
Date: Wed, 05 Apr 2017 07:24:44 +0200	[thread overview]
Message-ID: <86r317a0kj.fsf@molnjunk.nocrew.org> (raw)
In-Reply-To: 967bcfa0-bdc8-2a3d-c02d-4ce6e938f955@cs.ucla.edu

Paul Eggert wrote:
> Stefan Monnier wrote:
>> the first field can be a type name (a symbol) or a type descriptor (a
>> record, where the first field holds the corresponding type name).
> Ah, I'm afraid I don't know how type descriptors are supposed to work
> in Emacs. I don't offhand see the concept mentioned in the
> documentation; shouldn't it be?

I don't know for sure either, but it seems to be an EIEIO metaobject
thing.  So a type descriptor would be an instance of eieio--class.

I agree that the record type semantics should be documented.  The
type-of docstring says to return a symbol representing the type, so
that's good I think.  But I can insert a passage or two in the Lisp
manual.




  reply	other threads:[~2017-04-05  5:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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

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

  git send-email \
    --in-reply-to=86r317a0kj.fsf@molnjunk.nocrew.org \
    --to=lars@nocrew.org \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.