diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-01-06 02:40:34 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-01-06 02:40:34 -0800 |
commit | 79e5242c7ffa0cc788d747b576271e3e6a240ef5 (patch) | |
tree | 23ae74f4f826cbd06e4a8921f0bfa05bcc83b2f4 /txr.1 | |
parent | c6c6e15e9f13e45bc7a1e2626ca41e03f0ba0983 (diff) | |
download | txr-79e5242c7ffa0cc788d747b576271e3e6a240ef5.tar.gz txr-79e5242c7ffa0cc788d747b576271e3e6a240ef5.tar.bz2 txr-79e5242c7ffa0cc788d747b576271e3e6a240ef5.zip |
refset: implement objects that support car method.
refset and range assignment is implemented for objects that
have no lambda-set but do have a car method.
* lib.c (refset): Implementation for lists rewritten
to avoid listref_l, and use nthcdr instead.
For structs, if there is no lambda-set method, but
a car method exists, jump to the list case: the idea
is that we can cdr down and then use rplaca.
(dwim_set): Error handling streamlined. In this function too,
we check whether there is a car method and branch to the list
case.
Diffstat (limited to 'txr.1')
0 files changed, 0 insertions, 0 deletions