[Top][All Lists]

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

Re: error loading (system foreign) in r6rs mode

From: Andy Wingo
Subject: Re: error loading (system foreign) in r6rs mode
Date: Wed, 16 Jan 2013 17:44:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)


On Wed 16 Jan 2013 12:43, Marco Maggi <address@hidden> writes:

> ;;; WARNING: compilation of /home/marco/var/tmp/proof.sps failed:
> ;;; ERROR: In procedure module-lookup: Unbound variable: dynamic-link

This procedure is not exported from (system foreign), but from (guile).

>   But the program:
>    #!r6rs
>    (import (rnrs)
>      (system foreign))
>    (define libz
>      (dynamic-link ""))
>    (display libz)
>    (newline)
> succeeds with no problems.  Is (system foreign) special?

No, but programs (R6RS and otherwise) start with all bindings from
(guile) in their environment.  (Is this a good thing or a bad thing?  I
don't know.  This may change at some point for R6RS, for what it's
worth.  But anyway, here it's as if you have already done an (import

Happy hacking,


reply via email to

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