unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Loading R6RS Libraries
@ 2010-11-15  6:18 Noah Lavine
  2010-11-15  8:16 ` Andreas Rottmann
  0 siblings, 1 reply; 2+ messages in thread
From: Noah Lavine @ 2010-11-15  6:18 UTC (permalink / raw)
  To: guile-devel

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))

I didn't expect this because the manual refers to an '(rnrs base (6))'
library. Is this what's supposed to be happening?

Thanks,
Noah



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Loading R6RS Libraries
  2010-11-15  6:18 Loading R6RS Libraries Noah Lavine
@ 2010-11-15  8:16 ` Andreas Rottmann
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Rottmann @ 2010-11-15  8:16 UTC (permalink / raw)
  To: Noah Lavine; +Cc: guile-devel

Noah Lavine <noah.b.lavine@gmail.com> 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/>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-15  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-15  6:18 Loading R6RS Libraries Noah Lavine
2010-11-15  8:16 ` Andreas Rottmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).