diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-02-26 08:32:20 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-02-26 08:32:20 -0800 |
commit | 7e9b59c62856266395ff4d5dcd50390625fde351 (patch) | |
tree | cbc13de0bff8d6b8a1005c275900c0ff551b588c | |
parent | 116ab6dc94eadc629b118ad618ad4a3145fad6b8 (diff) | |
download | txr-7e9b59c62856266395ff4d5dcd50390625fde351.tar.gz txr-7e9b59c62856266395ff4d5dcd50390625fde351.tar.bz2 txr-7e9b59c62856266395ff4d5dcd50390625fde351.zip |
doc: fix references to sys:expand.
* txr.1: In a few places, we are referring to sys:expand which
has been made public as usr:expand.
-rw-r--r-- | txr.1 | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -33638,7 +33638,7 @@ evaluation order. (call car-update-expander 'getit 'setit '(car [a 0]) '(setit (+ (getit) 1))) - --> ;; Resulting code: + ;; --> Resulting code: (rlet ((#:g0032 [a 0])) (macrolet ((getit nil @@ -33648,16 +33648,16 @@ evaluation order. (list '#:g0032) (list val)))) (setit (+ (getit) 1)))) - ;; Same expander call as above, with a sys:expand to show the - ;; fully expanded version of the returned code, in which the - ;; setit and getit calls have disappeared, replaced by their - ;; macro-expansions. + ;; Same expander call as above, with a call to expand added + ;; to show the fully expanded version of the returned code, + ;; in which the ;; setit and getit calls have disappeared, + ;; replaced by their macro-expansions. - (sys:expand + (expand (call car-update-expander 'getit 'setit '(car [a 0]) '(setit (+ (getit) 1)))) - --> + ;; --> Resulting code: (let ((#:g0032 [a 0])) (sys:rplaca #:g0032 (+ (car #:g0032) 1))) @@ -33899,7 +33899,7 @@ A full expansion, with the local macros expanded out: .cblk - (sys:expand '(swap a b)) + (expand '(swap a b)) --> @@ -34623,7 +34623,7 @@ are assignable, and provide temporary storage. (y a)) (+ x y))) --> 43 - (sys:expand + (expand '(let ((a 42)) (rlet ((x 1) (y a)) |