On Mon, Jun 9, 2008 at 4:39 AM, felix winkelmann <[EMAIL PROTECTED]> wrote:
> I have tried to improve the usability of the module system and exported
> macro definitions now fully close over their lexical environment.

Does this work for imported bindings as well?  For example, I imported
begin0 from miscmacros, which itself imports the scheme module and
makes use of 'apply'.  However, I can't see 'apply' without manually
importing scheme.

We discussed this earlier and the manual import was required at that
point, but then I saw this email, which I might have misunderstood.
If manual import is required it should probably be mentioned in the
doc.

#;1> (use miscmacros)
; loading /Users/jim/local/chicken-hygienic/lib/chicken/4/miscmacros.so ...
; loading /Users/jim/local/chicken-hygienic/lib/chicken/4/miscmacros.import.so
...
; loading /Users/jim/local/chicken-hygienic/lib/chicken/4/scheme.import.so ...
; loading /Users/jim/local/chicken-hygienic/lib/chicken/4/chicken.import.so ...
#;2> (module foo () (import miscmacros) (begin0 1 2))
Warning: reference to possibly unbound identifier: apply
Error: unbound variable: foo#apply
#;2> (module foo () (import scheme miscmacros) (begin0 1 2))
1


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to