diff options
-rw-r--r-- | share/txr/stdlib/place.tl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/txr/stdlib/place.tl b/share/txr/stdlib/place.tl index 14cb87b6..b1452225 100644 --- a/share/txr/stdlib/place.tl +++ b/share/txr/stdlib/place.tl @@ -196,9 +196,9 @@ place env accum-form)) pvtgs body-form)))))) -(defmacro zap (place :env env) +(defmacro zap (place : (new-val nil) :env env) (with-update-expander (getter setter) place env - ^(prog1 (,getter) (,setter nil)))) + ^(prog1 (,getter) (,setter ,new-val)))) (defmacro flip (place :env env) (with-update-expander (getter setter) place env |