macro-introduced variables clobber the top-level
Bug #183680 reported by
Abdulaziz Ghuloum
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Committed
|
Medium
|
Abdulaziz Ghuloum |
Bug Description
> (define-syntax def
(syntax-rules ()
[(_ name val)
(begin
(define tmp val) ;;; this should be fresh
(define (name) tmp))]))
> (def x 12)
> (x)
12
> (def y 13)
> (y)
13
> (x)
13 ;;; should be 12
> tmp
13 ;;; should not be visible
Changed in ikarus: | |
assignee: | nobody → aghuloum |
importance: | Undecided → Medium |
status: | New → Confirmed |
description: | updated |
Changed in ikarus: | |
milestone: | none → 0.0.4 |
To post a comment you must log in.
Fixed in rev 1459.