Opened 12 years ago

Closed 12 years ago

#865 closed defect (fixed)

modules: * export breaks when trying to export variables from imported modules

Reported by: megane Owned by: felix winkelmann
Priority: minor Milestone: 4.9.0
Component: unknown Version: 4.7.x
Keywords: Cc:
Estimated difficulty:

Description

This is a variation of #843.

I have attached a possible patch for this.

;; Works
(module
 bar
 *
 (import chicken scheme)
 (define b 2))

(module
 foo
 ()
 (import chicken scheme)
 (import bar)
 (export b)
 
 )
(import foo)
(print b)

;; Doesn't work
(module
 bar2
 *
 (import chicken scheme)
 (define b2 2))

(module
 foo2
 *
 (import chicken scheme)
 (import bar2)
 (export b2)
 
 )

(import foo2)
(print b2) ;; <- Error: unbound variable: b2

Attachments (1)

patch1 (621 bytes) - added by megane 12 years ago.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by megane

Attachment: patch1 added

comment:1 Changed 12 years ago by felix winkelmann

Owner: set to felix winkelmann
Status: newassigned

comment:2 Changed 12 years ago by felix winkelmann

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.