diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-03-29 22:40:55 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-03-30 11:08:39 +0100 |
commit | d2be7e3c4ba8d6d0dde9b4c0bff623ab85637424 (patch) | |
tree | a9be7eae8e45656e1d6fe9943d4f7e29fe34944a /tests/base16.scm | |
parent | ec12e53736f212d700587e096ebee15ffc118c46 (diff) | |
download | patches-d2be7e3c4ba8d6d0dde9b4c0bff623ab85637424.tar patches-d2be7e3c4ba8d6d0dde9b4c0bff623ab85637424.tar.gz |
records: Support custom 'this' identifiers.
This lets record users choose an identifier other than 'this-record'.
* guix/records.scm (make-syntactic-constructor): Add #:this-identifier.
[wrap-field-value]: Honor it.
(define-record-type*): Add form with extra THIS-IDENTIFIER and honor
it.
* tests/records.scm ("define-record-type* & thunked & inherit & custom this"):
New test.
Diffstat (limited to 'tests/base16.scm')
0 files changed, 0 insertions, 0 deletions