From: Per Bothner <per@bothner.com>
To: kawa@sourceware.org
Subject: Re: synchronized in r7rs library
Date: Mon, 29 Dec 2014 01:56:00 -0000 [thread overview]
Message-ID: <54A0B4CB.9070905@bothner.com> (raw)
In-Reply-To: <54A0A0D4.3070605@hungry.com>
On 12/28/2014 04:31 PM, Seth Alves wrote:
>
> Well... I notice that it's callable from the top-level, just not from
> within an r7rs library.
This is what r7rs requires: In a define-library the only visible
bindings are those explicitly defined or imported. OTOH at the top-level
"For convenience and ease of use, the global Scheme environment in a
REPL must not be empty, but must start out with at least the bindings
provided by the base library."
One of the things I had to explicitly work on for the R7RS functionality was
making sure the define-library "environment" starts out empty.
> Is there currently some incantation that
> would import it
The following should work:
(import (only (kawa lib syntax) synchronized))
However, that will not work if synchronized is moved
from the kawa.lib.syntax class. That sort of thing occasionally
happens, as I consider the specific implementation class an
implementation detail.
> (as well as future, force, runnable)?
That is why as need to define some library such as (kawa all) or
(kawa jvm). so you could (import (kawa jvm)) - as I mentioned in my
previous message.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
prev parent reply other threads:[~2014-12-29 1:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-28 21:49 Seth Alves
2014-12-28 22:18 ` Per Bothner
2014-12-29 0:31 ` Seth Alves
2014-12-29 1:56 ` Per Bothner [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54A0B4CB.9070905@bothner.com \
--to=per@bothner.com \
--cc=kawa@sourceware.org \
/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).