chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] hygienic branch basically working


From: Jim Ursetto
Subject: Re: [Chicken-users] hygienic branch basically working
Date: Fri, 11 Jul 2008 14:38:32 -0500

On Mon, Jun 30, 2008 at 4:49 AM, felix winkelmann <address@hidden> wrote:
> Don't be afraid to report bugs and offer critique! If I come over grumpy
> at times, it's just because the module- and macro stuff stresses my 
> programming
> abilities to the limit...

Hi Felix.  The behavior below doesn't seem right.  An unimported
binding is seen within a module in both compiled and interpreted code.
 However a binding (pretty-print) in the extras unit behaves as
expected.

Compiled:

$ echo "(use hostinfo) (module foo () (import chicken) (print
host-information))" > /tmp/a.scm
$ csc4 /tmp/a.scm && /tmp/a
#<procedure (hostinfo#host-information host419)>

Interpreted:

SVN rev. 11260  compiled 2008-07-11 on amaranth.xorinia.dim (Darwin)
#;1> (use hostinfo)
; loading /Users/jim/local/chicken-hygienic/lib/chicken/4/hostinfo.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 ...
; loading /Users/jim/local/chicken-hygienic/lib/chicken/4/extras.import.so ...
...
; loading /Users/jim/local/chicken-hygienic/lib/chicken/4/hostinfo.so ...

#;2> (module foo () host-information)
#<procedure (hostinfo#host-information host419)>

#;3> (module foo () pp)
Warning: reference to possibly unbound identifier `pp'
Error: unbound variable: foo#pp
#;3> pp
#<procedure (pretty-print obj1081 . opt1082)>




reply via email to

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