macro-introduced variables clobber the top-level

Bug #183680 reported by Abdulaziz Ghuloum
2
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

Tags: repl
Changed in ikarus:
assignee: nobody → aghuloum
importance: Undecided → Medium
status: New → Confirmed
description: updated
Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Fixed in rev 1459.

Changed in ikarus:
status: Confirmed → Fix Committed
Changed in ikarus:
milestone: none → 0.0.4
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.