diff options
author | Andy Wingo <wingo@pobox.com> | 2017-09-25 21:33:22 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2017-09-25 21:54:36 +0200 |
commit | a74d4ee4f6e062ff640f2532c9cfc9977bb68a49 (patch) | |
tree | f76bf42f2d76b4304cde6dc909a74c152336e4b0 /NEWS | |
parent | f23415589a0e263e34a687b5dad1b1624e949639 (diff) |
Add struct-ref/unboxed, struct-set!/unboxed
* NEWS: Add news entry.
* doc/ref/api-data.texi (Vtables, Structure Basics): Update
documentation.
* libguile/struct.c (scm_i_struct_equalp): Avoid using struct-ref on
unboxed fields.
(scm_struct_ref, scm_struct_set_x_unboxed): Issue deprecation warning
when accessing unboxed fields.
(scm_struct_ref_unboxed, scm_struct_set_x_unboxed): New functions.
* libguile/struct.h (scm_struct_ref_unboxed, scm_struct_set_x_unboxed):
New functions.
* module/oop/goops.scm (class-add-flags!, class-clear-flags!):
(class-has-flags?, <class>, %allocate-instance, <slot>):
(compute-get-n-set, unboxed-get, unboxed-set, unboxed-slot?):
(allocate-slots, %prep-layout!, make-standard-class, initialize):
Adapt to access unboxed nfields and flags fields via the new
accessors.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -17,6 +17,11 @@ The URI standard, RFC 3986, defines additional "relative-ref" and for these URI subtypes has been improved. See "Universal Resource Identifiers" in the manual, for more. +** `struct-ref/unboxed' and `struct-set!/unboxed' + +These procedures should be used when accessing struct fields with type +`u' (unboxed). See "Structure Basics" in the manual, for full details. + * New deprecations ** Using `uri?' as a predicate on relative-refs deprecated @@ -81,6 +86,10 @@ To enforce permissions on struct fields, instead layer on an abstraction at a higher level, in the same way that immutable record fields are simply those which don't have an accessor. +** Using `struct-ref' and `struct-set!' on unboxed fields is deprecated + +Use the new `struct-ref/unboxed' and `struct-set!/unboxed' instead. + * Bug fixes ** Enable GNU Readline 7.0's support for "bracketed paste". |