From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8111 invoked by alias); 12 Feb 2015 17:57:44 -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 8089 invoked by uid 89); 12 Feb 2015 17:57:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 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; Thu, 12 Feb 2015 17:57:42 +0000 Received: from [10.9.9.207] (helo=mailfront03.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1YLy1C-0002VB-ON for kawa@sourceware.org; Thu, 12 Feb 2015 18:57:38 +0100 Received: from 70-36-239-115.dsl.dynamic.fusionbroadband.com ([70.36.239.115] helo=toshie.bothner.com) by mailfront03.runbox.com with esmtpsa (uid:757155 ) (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) id 1YLy0a-0000jY-Va for kawa@sourceware.org; Thu, 12 Feb 2015 18:57:01 +0100 Message-ID: <54DCE968.7000800@bothner.com> Date: Thu, 12 Feb 2015 17:57:00 -0000 From: Per Bothner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: kawa@sourceware.org Subject: Re: Using Kawa extensions in R7RS libraries References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-q1/txt/msg00023.txt.bz2 On 02/12/2015 01:27 AM, Helmut Eller wrote: > I supposed it's possible to import Kawa extensions into > R7RS libraries like so: > > (define-library (foo) > (import (only invoke invoke-static field static-field)) > ...) > > But what is the name of that exports the various Kawa > extensions? I think we could start with: (kawa reflect) ; includes invoke invoke-static field static-field and more (kawa all) ; everything defined in the default REPL I'll get to it soon, but if you want to contribute at least (kawa reflect) it's fairly straightforward. See kawa/lib/prim_imports.scm for how to do it. We just need to create kawa/lib/kawa/reflect.scm based on that pattern. -- --Per Bothner per@bothner.com http://per.bothner.com/