guile-devel
[Top][All Lists]
Advanced

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

Re: Loading R6RS Libraries


From: Andreas Rottmann
Subject: Re: Loading R6RS Libraries
Date: Mon, 15 Nov 2010 09:16:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Noah Lavine <address@hidden> writes:

> Hello all,
>
> I encountered some behavior I didn't expect, and I'm not sure if it's
> intended or not. The following code works fine:
>
> (use-modules (rnrs base))
>
> However, the next two lines both give errors:
>
> (use-modules (rnrs base (6)))
> (use-modules (rnrs base 6))
>
That's to be expected -- `use-modules' has a different syntax than R6RS'
`import'. So if you really want to include the version number, you
should do either:

(import (rnrs base (6)))

or

(use-modules ((rnrs base) #:version (6)))

Cheers, Rotty
-- 
Andreas Rottmann -- <http://rotty.yi.org/>



reply via email to

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