Summary

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

Metadata

Attachments

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

Changes and comments

[2012-06-10 21:10:18 UTC] megane attached patch1 (description=#f)

[2012-06-11 09:36:03 UTC] felix changed status from new to assigned

[2012-06-11 09:36:03 UTC] felix set owner to felix

[2012-06-12 12:56:58 UTC] felix changed status from assigned to closed

[2012-06-12 12:56:58 UTC] felix set resolution to fixed