diff options
author | Andy Wingo <wingo@pobox.com> | 2019-10-28 16:58:22 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2019-10-28 16:59:58 +0100 |
commit | 315fabdfe7122737ca9a804097ff16dabfd7a63a (patch) | |
tree | bedc0edf9abe43bad1d3bd6535c710019be7dca8 /module/rnrs | |
parent | f963bdf02d7dd316884ccc9d590b3a7327406422 (diff) | |
download | guile-315fabdfe7122737ca9a804097ff16dabfd7a63a.tar.gz |
Add support for immutable fields in core records
* module/ice-9/boot-9.scm (make-record-type): Allow (mutable NAME)
or (immutable NAME) as a field name, and record field mutability in a
bitfield.
(record-modifier): Throw an error if the field isn't mutable.
* test-suite/tests/records.test ("records"): Add tests.
* doc/ref/api-data.texi (Records): Update.
Diffstat (limited to 'module/rnrs')
0 files changed, 0 insertions, 0 deletions