From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by sourceware.org (Postfix) with ESMTPS id C25F33858402 for ; Tue, 14 Sep 2021 17:58:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C25F33858402 Received: by mail-io1-xd2d.google.com with SMTP id a15so18293678iot.2 for ; Tue, 14 Sep 2021 10:58:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fZnKuDMnE446ztc+x5DW34S5ZNP7lkm/rOjBGp8oOrw=; b=XqsYvqi9fCJMdK0HSCFMyn4kBIuZzwjrn1h2bKY1BZU5jEfcjFsj7ZiStPEBdUMkqc GkymlWPOReaW9uP1jyU3dWQC+fVm6QANsIMIuglf71l4YosaRxacBu9C4OJTpFBWmzUm nkOXxsyg7Eje0KsYnRjpEztAin6j6zwOaF91mchC43N6QijkTpyEcIlgnc+8Q5rUD17H 8aDqemvm+42LBnp5t6/eEVy2NJHeb+GU3mPbTDUxyTivH1MR+oJO7jojqHPMhIT10Dta zWoL+AUkpTdPDB4sugZD321xvnLRf10gJzA5cepM8M2GjLQz9Ql5yKOW3qZPKuMAO6bE 8HEA== X-Gm-Message-State: AOAM533XrPwrpAhpqUe69/RjUBbskHOiBHky/vMrKqQw1WS4MsT12XLv N60suRUsgq8YIAzVVV631WUQSg8tEmUmTc9azugloArqmQQV3g== X-Google-Smtp-Source: ABdhPJwWHFUhnnxa0Kj0shdSRL03S9h/1Z3uu5c+Ok0L9Aqg96c7aLf/ASbT31Tab/ND1MkZN2DZ0zVjhSaPv8/2kfI= X-Received: by 2002:a6b:b842:: with SMTP id i63mr14714685iof.115.1631642338235; Tue, 14 Sep 2021 10:58:58 -0700 (PDT) MIME-Version: 1.0 References: <1301054857.197399065.1631259238004.JavaMail.root@zimbra65-e11.priv.proxad.net> <515e7486-9636-e698-b811-9574bf0bedc3@bothner.com> In-Reply-To: <515e7486-9636-e698-b811-9574bf0bedc3@bothner.com> From: Damien Mattei Date: Tue, 14 Sep 2021 19:58:47 +0200 Message-ID: Subject: Re: define-syntax can only be used with local variables To: Per Bothner Cc: phiroc@free.fr, kawa@sourceware.org X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: kawa@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Kawa mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2021 17:59:00 -0000 hello Per, it is strange when downloading source and trying to compile it with same openjdk 16 than the one use by binary i got two errors, the first one being: javac -d . -classpath ".:.:$CLASSPATH" -g @tmp-sources1.list ./gnu/lists/CharSeq.java:11: error: types CharSequence and Sequence are incompatible; it could be helpful to understand why before thinking to a problem of hygiene because all is running well in kawa-2.1, i admit it is old and i do nothing about what happen between those long times.... Damien On Tue, Sep 14, 2021 at 7:27 PM Per Bothner wrote: > > > On 9/10/21 12:33 AM, phiroc--- via Kawa wrote: > > Hello, > > in the below code, nil! and nil2! only set variables values to '() and > '(0) when such variables are local (let). > > I'm guessing (without having tested it) that the restriction isn't local > variables > but lexical vs dynamic variables. I.e. it is likely that module-level > (library-level) > variables would also work. > > Probably a problem with macro hygiene. Though it's weird that it behaves > differently on > different systems. Possibly different Java versionor different Kawa > versions (though > I don't recall changing anything in this area in a while). > > Could be a nice exercise to figure out for someone who > wants to understand how Kawa macro hygiene works. > -- > --Per Bothner > per@bothner.com http://per.bothner.com/ >