File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1064,7 +1064,7 @@ For example, consider this definition of `repeat`:
10641064
10651065```
10661066arc> (mac repeat (n . body)
1067- `(for x 1 ,n ,@body))
1067+ `(up x 1 ,n ,@body))
10681068#3(tagged mac #<procedure>)
10691069```
10701070
@@ -1088,7 +1088,7 @@ code above is equivalent to
10881088
10891089```
10901090(let x "blub "
1091- (for x 1 3 (pr x)))
1091+ (up x 1 3 (pr x)))
10921092```
10931093
10941094Now the bug is obvious. The macro uses the variable ` x ` to hold the
@@ -1112,7 +1112,7 @@ the one in the Arc source) is
11121112
11131113```
11141114(mac repeat (n . body)
1115- `(for ,(uniq) 1 ,n ,@body))
1115+ `(up ,(uniq) 1 ,n ,@body))
11161116```
11171117
11181118If you need one or more uniqs for use in a macro, you can use ` w/uniq ` ,
You can’t perform that action at this time.
0 commit comments