From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61283 invoked by alias); 2 Mar 2018 23:50:29 -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 61230 invoked by uid 89); 2 Mar 2018 23:50:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= 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 ESMTP; Fri, 02 Mar 2018 23:50:27 +0000 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1eruRT-0003I9-I7; Sat, 03 Mar 2018 00:50:23 +0100 Received: from 70-36-239-180.dsl.dynamic.fusionbroadband.com ([70.36.239.180] helo=localhost.localdomain) by mailfront12.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1eruRJ-00036U-Jw; Sat, 03 Mar 2018 00:50:13 +0100 Subject: Re: Using with-syntax To: Duncan Mak , kawa mailing list References: From: Per Bothner Message-ID: <1bd6478e-cd70-09ab-6c45-90008329e11f@bothner.com> Date: Fri, 02 Mar 2018 23:50:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-q1/txt/msg00025.txt.bz2 On 03/02/2018 03:28 PM, Duncan Mak wrote: > Hello, > > I'm writing some macro code and I make use of with-syntax quite a bit. > When I load it in the REPL, it all seems to work, but when I load it > as an R7RS library module definition, I run into various issues: > > 1) If I run it with (import (scheme base)), I fall into a recursive > loop inside some rewrite step, and it eventually gives up. Curious. > 2) If I run it with (import (scheme base) (kawa lib std_syntax)), I > seem to see something similar (http://savannah.gnu.org/bugs/?49416 > says to import std_syntax). > > 3) If I run it with (import (kawa base)), then things seem to work, > but now I can't define my own macro named define-variable. How about: (import (except (kawa base) define-variable)) > What's the right way to get with-syntax to work? We should probably have a (kawa syntax-case) library. -- --Per Bothner per@bothner.com http://per.bothner.com/