Opened 4 months ago

#1812 new defect

Modules leaking define-for-syntax variables and functions

Reported by: Idiomdrottning Owned by:
Priority: major Milestone: someday
Component: core libraries Version: 5.3.0
Keywords: modules, syntax Cc:
Estimated difficulty:

Description

(module foo
(foo-deluxe)
(import scheme (chicken base) (chicken syntax))
(define-for-syntax (bar) (print "hi!"))
(define-syntax foo-deluxe
  (syntax-rules ()
    ((foo-deluxe) (bar))))
)

(import foo)
(foo-deluxe)
(bar)
(set! bar #f)
(foo-deluxe)

Is this intentional?

Change History (0)

Note: See TracTickets for help on using tickets.