emacs-devel
[Top][All Lists]
Advanced

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

Re: User-defined record types, v3


From: Lars Brinkhoff
Subject: Re: User-defined record types, v3
Date: Mon, 03 Apr 2017 19:49:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Lars Brinkhoff wrote:
> Third review round for user-defined record types, available from the
> branch scratch/record.

John Wiegley has okayed this, so I'm planning to merge this within 24
hours.

A full boostrap build (and testsuite run) works fine.  Incremental
builds can run into problems with .elc files.  To be on the safe side, I
usually rebuild from a clean repository, but just removing all .elc
files also seems to work.



> From the manual:
>
>       The purpose of records is to allow programmers to create objects
>     with new types that are not built into Emacs.  They are used as the
>     underlying representation of @code{cl-defstruct} and @code{defclass}
>     instances.
>       
>       Internally, a record object is much like a vector; its slots can
>     be accessed using @code{aref}.  However, the first slot is used to
>     hold its type as returned by @code{type-of}.  Like arrays, records
>     use zero-origin indexing: the first slot has index 0.




reply via email to

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