[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scratch/record 5aa9a80: * src/data.c (Ftype_of): Return type name, i
From: |
Lars Brinkhoff |
Subject: |
Re: scratch/record 5aa9a80: * src/data.c (Ftype_of): Return type name, if record's type holds class. |
Date: |
Wed, 22 Mar 2017 19:56:40 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
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?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: scratch/record 5aa9a80: * src/data.c (Ftype_of): Return type name, if record's type holds class.,
Lars Brinkhoff <=