Macro visibility is not correct

Create issue
Issue #1 resolved
Takashi Kato repo owner created an issue

Following script prints incorrect value;

(import (rnrs))
(define-syntax renaming-test
  (syntax-rules ()
    ((_ var val)
     (begin
       (define dummy val)
       (define (var) dummy)))))
(define dummy #f)
(renaming-test a 'a)
(print (a))
(print dummy)

It should print 'a' and '#f' however the result is '2' and 'a'

Comments (1)

  1. Log in to comment