From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118191 invoked by alias); 8 Jul 2015 14:11:04 -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 118152 invoked by uid 89); 8 Jul 2015 14:11:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f46.google.com Received: from mail-wg0-f46.google.com (HELO mail-wg0-f46.google.com) (74.125.82.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 08 Jul 2015 14:11:00 +0000 Received: by wgxm20 with SMTP id m20so13764443wgx.3 for ; Wed, 08 Jul 2015 07:10:57 -0700 (PDT) X-Received: by 10.180.94.168 with SMTP id dd8mr113465613wib.76.1436364657377; Wed, 08 Jul 2015 07:10:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.246.165 with HTTP; Wed, 8 Jul 2015 07:10:17 -0700 (PDT) In-Reply-To: References: <54DCE968.7000800@bothner.com> <54E2DE69.2060708@bothner.com> <851CA162-87C3-4161-BD7D-338E6AC34FEC@theptrgroup.com> <552B70EC.8040608@bothner.com> <559958AE.2060101@bothner.com> From: =?UTF-8?B?RWzDrWFzIEFsb25zbyBHLi1Db3JuZWpv?= Date: Wed, 08 Jul 2015 14:11:00 -0000 Message-ID: Subject: Re: Using Kawa extensions in R7RS libraries To: Per Bothner Cc: kawa mailing list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-q3/txt/msg00009.txt.bz2 The bitwise operators are missing from (kawa base) too. 2015-07-06 9:29 GMT+02:00 El=C3=ADas Alonso G.-Cornejo : > The patch works correctly but raises another issue: (future ...) and > (runnable ...) are not included in (kawa base). I don't know if they > should be included, but if I require kawa/lib/thread.scm with (import > thread), any attempt to call (future ...) will show the following > message: > > warning - no declaration seen for lambda > > And fail. I fixed it by adding (import (scheme base)) at the top of > kawa/lib/thread.scm but I'm not sure if that's the best way to do it. > >> The object macro is implemented by the Java code kawa/standard/object.ja= va. >> (You can see this by searching for "object" in kawa/standard/Scheme.java= .) > > Thanks, I appreciate the directions. I've tried to read kawa's source > code before, but didn't know where to begin. kawa/standard/Scheme.java > looks like a good starting point :) > > 2015-07-05 18:17 GMT+02:00 Per Bothner : >> >> >> On 07/05/2015 12:31 AM, El=C3=ADas Alonso G.-Cornejo wrote: >>> >>> I've been having some trouble using >>> >>> (object ...) >>> >>> to create anonymous classes inside >>> >>> (define-library ...) >>> >>> declarations. I've added (import (kawa base)), but Kawa tries to >>> instantiate java.lang.Object instead of creating the anonymous class. >>> Where is the (object ...) macro defined? I've looking in lib/kawa, >>> but can't find it. >> >> >> The object macro is implemented by the Java code kawa/standard/object.ja= va. >> (You can see this by searching for "object" in kawa/standard/Scheme.java= .) >> >> It looks like 'object' is missing in (kawa base). Please try the >> attached patch and let me know if that fixes the issue. >> >> We need to systematically go through the kawa extensions and add >> them to (kawa base). (We should also re-do the bindings in Scheme.java >> to use (kawa base) rather than duplicate it.) >> >> -- >> --Per Bothner >> per@bothner.com http://per.bothner.com/