From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18632 invoked by alias); 29 Dec 2014 01:56:59 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 18346 invoked by uid 89); 29 Dec 2014 01:56:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 29 Dec 2014 01:56:56 +0000 Received: from [10.9.9.209] (helo=mailfront04.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1Y5PZl-0001UR-AC for kawa@sourceware.org; Mon, 29 Dec 2014 02:56:53 +0100 Received: from 76-9-81-87-rt-broadband-01.broadband.oakhurst.sti.net ([76.9.81.87] helo=toshie.bothner.com) by mailfront04.runbox.com with esmtpsa (uid:757155 ) (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) id 1Y5PZP-0005r3-Rh for kawa@sourceware.org; Mon, 29 Dec 2014 02:56:32 +0100 Message-ID: <54A0B4CB.9070905@bothner.com> Date: Mon, 29 Dec 2014 01:56:00 -0000 From: Per Bothner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: kawa@sourceware.org Subject: Re: synchronized in r7rs library References: <54A07ACF.70402@hungry.com> <54A081BB.8090103@bothner.com> <54A0A0D4.3070605@hungry.com> In-Reply-To: <54A0A0D4.3070605@hungry.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-q4/txt/msg00173.txt.bz2 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/