emacs-devel
[Top][All Lists]
Advanced

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

User-defined record types, v3


From: Lars Brinkhoff
Subject: User-defined record types, v3
Date: Wed, 29 Mar 2017 09:14:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Third review round for user-defined record types, available from the
branch scratch/record.

- ChangeLog commit messages.
- EIEIO has been adapted to use records.
- Tests have been added.
- Documentation has been updated.
- No testsuite regressions.

>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]