chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] hygienic chicken (getting better, but still problems


From: Jim Ursetto
Subject: Re: [Chicken-users] hygienic chicken (getting better, but still problems)
Date: Wed, 16 Jul 2008 16:38:04 -0500

On Mon, Jun 9, 2008 at 4:39 AM, felix winkelmann <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]