From: Julian Graham <joolean@gmail.com>
To: Andreas Rottmann <a.rottmann@gmx.at>
Cc: Andy Wingo <wingo@pobox.com>, guile-devel <guile-devel@gnu.org>
Subject: Re: r6rs libraries, round three
Date: Wed, 18 Nov 2009 01:40:00 -0500 [thread overview]
Message-ID: <2bc5f8210911172240k62bb28b0nac2e8107a6d3b945@mail.gmail.com> (raw)
In-Reply-To: <87my2kmxay.fsf@delenn.lan>
Hi Andreas,
> IIRC, R6RS doesn't /require/ that implementations are able to
> differentiate bindings from different phases -- e.g. Ikarus essentially
> ignores phase specifications (implicit phasing -- there were some
> discussions about that on ikarus-users, which I can't find ATM, but [0]
> should sum the issue up nicely).
You're right, it doesn't -- at least, it's not required that an
implementation prevent you from referencing an identifier at a phase
other than the one it was imported for. I was reading that part of
the spec in terms of non-macro definitions, but, come to think of it,
it's got to apply to macros as well. So importing everything at once
sounds like it'll work just fine.
> Are you aware of SRFI-103? It got recently revised to leave out
> versions; not supporting them is an option, I guess. Quoting from R6RS:
I was tracking SRFI-103 for a while back when it was (I think)
SRFI-100. I'm interested to see how it pans out, but I'm not sure I
agree with its rationale -- it seems mostly useful for implementations
that don't currently have their own library search mechanism. The bit
about "distributing and using library files in a portable way" seems a
bit hand-wavy to me.
> This makes me wonder if versions can be used (or rather be relied on)
> sensibly in portable libraries at all...
Yes, it's a bit thorny. We discussed the limitations in a thread [1]
a while back. The implementation I did reflects the outcome of that
thread, which was that the version of a library that gets loaded is a
function of the import statements, the available libraries, and the
set of already-loaded libraries -- which means that it's not a fully
predictable process from the point of view of library authors, but
that in practice, collisions aren't likely for a variety of reasons.
Regards,
Julian
[1] - http://www.mail-archive.com/guile-devel@gnu.org/msg03673.html
next prev parent reply other threads:[~2009-11-18 6:40 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-26 20:10 r6rs libraries, round three Julian Graham
2009-10-01 4:32 ` Julian Graham
2009-10-24 19:10 ` Julian Graham
2009-10-25 22:01 ` Andy Wingo
2009-10-26 3:53 ` Julian Graham
2009-11-01 19:26 ` Julian Graham
2009-11-16 20:47 ` Julian Graham
2009-11-17 19:56 ` Andy Wingo
2009-11-17 20:55 ` Julian Graham
2009-11-18 1:33 ` Andreas Rottmann
2009-11-18 6:40 ` Julian Graham [this message]
2009-12-13 3:24 ` Julian Graham
2009-12-22 0:10 ` Andy Wingo
2009-12-23 15:35 ` Julian Graham
2009-12-23 16:10 ` Neil Jerram
2009-12-28 22:42 ` Ludovic Courtès
2009-12-24 13:25 ` Andy Wingo
2009-12-27 20:04 ` Julian Graham
2009-11-18 1:18 ` Andreas Rottmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2bc5f8210911172240k62bb28b0nac2e8107a6d3b945@mail.gmail.com \
--to=joolean@gmail.com \
--cc=a.rottmann@gmx.at \
--cc=guile-devel@gnu.org \
--cc=wingo@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).