unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: scratch/record 5aa9a80: * src/data.c (Ftype_of): Return type name, if record's type holds class.
       [not found] ` <20170322171724.C531420E17@vcs0.savannah.gnu.org>
@ 2017-03-22 18:56   ` Lars Brinkhoff
  0 siblings, 0 replies; only message in thread
From: Lars Brinkhoff @ 2017-03-22 18:56 UTC (permalink / raw)
  To: emacs-devel

Stefan Monnier wrote:
> +          Lisp_Object t = AREF (object, 0);
> +          if (RECORDP (t) && 1 < ASIZE (t) & PSEUDOVECTOR_SIZE_MASK)
> +            /* Return the type name field of the class!  */
> +            return AREF (t, 1);
> +          else
> +            return t;

I had to surround this with { } to make it palatable to the compiler.

Then, this doesn't seem to work well with EIEIO's use of type-of, but
maybe there's more coming?




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-22 18:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20170322171724.2050.62256@vcs0.savannah.gnu.org>
     [not found] ` <20170322171724.C531420E17@vcs0.savannah.gnu.org>
2017-03-22 18:56   ` scratch/record 5aa9a80: * src/data.c (Ftype_of): Return type name, if record's type holds class Lars Brinkhoff

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