diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-08 06:40:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-08 06:40:06 -0700 |
commit | 6752067fbbeb3813fe991a02c03dd26dd6aae1b0 (patch) | |
tree | 39ba05d27bdef9770eeae22af5af95442cf768b0 /lisplib.c | |
parent | 97a17b79dd558c8ee8648a0acf2d50299e3c5125 (diff) | |
download | txr-6752067fbbeb3813fe991a02c03dd26dd6aae1b0.tar.gz txr-6752067fbbeb3813fe991a02c03dd26dd6aae1b0.tar.bz2 txr-6752067fbbeb3813fe991a02c03dd26dd6aae1b0.zip |
New slet macro.
* lisplib.c (place_set_entries): Add slet symbol to autoload
list for place.tl.
* share/txr/stdlib/place.tl (sys:r-s-let-expander): New
function.
(rlet): Replace body with call to sys:r-s-let-expander.
(slet): New macro.
* txr.1: Clarification and corrections in rlet description
and example. rlet will in fact handle the three-variable
rotation case because, since a is not a constant expression,
(rlet ((temp a)) ...) reduces to let.
Documented new slet.
Diffstat (limited to 'lisplib.c')
-rw-r--r-- | lisplib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -62,7 +62,7 @@ static val place_set_entries(val dlt, val fun) lit("get-update-expander"), lit("get-clobber-expander"), lit("get-delete-expander"), lit("place-form-p"), - lit("rlet"), lit("with-gensyms"), + lit("rlet"), lit("slet"), lit("with-gensyms"), lit("call-update-expander"), lit("call-clobber-expander"), lit("call-delete-expander)"), lit("with-update-expander"), lit("with-clobber-expander"), |