diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-06-11 22:57:33 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-06-11 23:33:32 +0200 |
commit | 8a16d064fa265c449d136ff6c3d3267e314cde8d (patch) | |
tree | b564649d1a1e3fd704a5a9efe0cfa5f421252df6 /nix/libutil | |
parent | 792798f48647ef664cfe6fdd7ff313901e383f6c (diff) | |
download | guix-8a16d064fa265c449d136ff6c3d3267e314cde8d.tar guix-8a16d064fa265c449d136ff6c3d3267e314cde8d.tar.gz |
records: Add support for 'innate' fields.
* guix/records.scm (make-syntactic-constructor): Add #:innate parameter.
[record-inheritance]: Honor it.
[innate-field?]: New procedure.
(define-record-type*)[innate-field?]: New procedure.
Pass #:innate to 'make-syntactic-constructor'.
* tests/records.scm ("define-record-type* & inherit & innate",
"define-record-type* & thunked & innate"): New tests.
Diffstat (limited to 'nix/libutil')
0 files changed, 0 insertions, 0 deletions