diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-06-08 20:40:34 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-06-08 20:40:34 -0700 |
commit | cfbf9c994f3c2cf352fe3dc3ba55df54e01bc94d (patch) | |
tree | 99f12b66af1faf928d5bdd07bf38019fc35a2020 /share | |
parent | f50c31c9571d96dcd6ec3880e12f0357a56bbcb6 (diff) | |
download | txr-cfbf9c994f3c2cf352fe3dc3ba55df54e01bc94d.tar.gz txr-cfbf9c994f3c2cf352fe3dc3ba55df54e01bc94d.tar.bz2 txr-cfbf9c994f3c2cf352fe3dc3ba55df54e01bc94d.zip |
Fixing semantics of makunbound.
* eval.c (unbound_s): New symbol variable.
(lookup_var): If a dynamic binding has the special sys:unbound
symbol as its value, then return nil, so the behavior
is as if there is no binding.
(makunbound): If the symbol exists in a dynamic environment,
then replace its value with sys:unbound, making it look
unbound.
(eval_init): Initialize unbound_s.
* lib.h (us_car, us_cdr): New inline functions.
* txr.1: New dialect notes under boundp.
Updated the makunbound documentation. Separated
makunbound documentation from fmakunbound and
mmakunbound. Added compatibility notes.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions