From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by sourceware.org (Postfix) with ESMTPS id 8AEF93858D3C for ; Thu, 16 Sep 2021 11:05:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8AEF93858D3C Received: from zimbra65-e11.priv.proxad.net (unknown [172.20.243.215]) by smtp3-g21.free.fr (Postfix) with ESMTP id EEC5813F7E7; Thu, 16 Sep 2021 13:05:32 +0200 (CEST) Date: Thu, 16 Sep 2021 13:05:02 +0200 (CEST) From: phiroc@free.fr To: Damien MATTEI Cc: kawa@sourceware.org Message-ID: <1475543959.217980716.1631790302735.JavaMail.root@zimbra65-e11.priv.proxad.net> In-Reply-To: Subject: Re: define-syntax can only be used with local variables MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [78.196.108.109] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - FF3.0 (Win)/7.2.0-GA2598) X-Authenticated-User: phiroc@free.fr X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: Thu, 16 Sep 2021 11:05:36 -0000 Hi, I've no idea. The Kawa Developers, if they are are reading this thread, may= be able to answer your question. Perhaps, there was no distinction between the Transformer (Macro) Environme= nt and the Normal Environment in Kawa 2.0, contrary to Kawa 3.1.1. All in all, the Chinese Wall between the Transformer Environment and the No= rmal Environment is good because it prevents you from shooting yourself in = the foot. ----- Mail original ----- De: "Damien MATTEI" =C3=80: kawa@sourceware.org Envoy=C3=A9: Jeudi 16 Septembre 2021 12:41:31 Objet: Re: define-syntax can only be used with local variables but why is it working with one version of kawa and not another? or did i=20 missed something in discussion? Damien Le 16/09/2021 =C3=A0 12:02, phiroc--- via Kawa a =C3=A9crit=C2=A0: > Hello, > here's an explanation : > > "The statement (set! *myglobal* "This does not") is executed in the trans= former environment, not the normal environment. So it's not able to find *m= yglobal. We need to get both the expressions executed in the environment wh= ere *myglobal* is defined." > > cf. https://stackoverflow.com/questions/5509837/set-global-from-scheme-ma= cro > > > > ----- Mail original ----- > De: "phiroc--- via Kawa" > =C3=80: kawa@sourceware.org > Envoy=C3=A9: Mercredi 15 Septembre 2021 09:10:15 > Objet: Re: define-syntax can only be used with local variables > > Good morning, > on Windows 10, using Kawa 3.1.1 and JDK 1.8.0_191, (nil2! y) fails to set= y to '(0). > Hence, there's probably a bug in the Kawa code (unless, in Scheme, macros= are not supposed to set dynamic variables). > Best regards, > Philippe > > ----------------------------------------------- > > > > > (define-syntax nil2! > (syntax-rules () > ((_ x) > (set! x '(0))))) > > (define y '(1)) > (nil2! y) > (display y) (newline) > > > > > ----- Mail original ----- > De: "Per Bothner" > =C3=80: "Damien MATTEI" > Cc: kawa@sourceware.org > Envoy=C3=A9: Mardi 14 Septembre 2021 21:30:55 > Objet: Re: define-syntax can only be used with local variables > > > > On 9/14/21 11:38 AM, Damien Mattei wrote: >> message of compiler is big, here is a part: >> >> (for f in kawa/standard/SchemeScriptEngineFactory.java kawa/GuiConsole.j= ava kawa/GuiInPort.java kawa/ReplPane.java kawa/ReplDocument.java kawa/Repl= PaneOutPort.java gnu/kawa/models/Box.java gnu/kawa/models/Button.java gnu/k= awa/models/Column.java gnu/kawa/models/DDimension.java gnu/kawa/models/Disp= lay.java gnu/kawa/models/DrawImage.java gnu/kawa/models/DrawShape.java gnu/= kawa/models/FillShape.java gnu/kawa/models/Label.java gnu/kawa/models/Model= .java gnu/kawa/models/ModelListener.java gnu/kawa/models/MenuItem.java gnu/= kawa/models/Picture.java gnu/kawa/models/Pictures.java gnu/kawa/models/Pict= ureToSvg.java gnu/kawa/models/PictureVisitor.java gnu/kawa/models/PBox.java= gnu/kawa/models/Row.java gnu/kawa/models/Spacer.java gnu/kawa/models/Stand= ardColor.java gnu/kawa/models/SVGUtils.java gnu/kawa/models/Text.java gnu/k= awa/models/Viewable.java gnu/kawa/models/WeakListener.java gnu/kawa/models/= Window.java gnu/kawa/models/WithComposite.java gnu/kawa/models/WithPaint.ja= va >> gnu/kawa/models/WithTransform.java=C2=A0 ; do echo ./$f; done) >>tmp-lis= t >> mv tmp-list tmp-sources1.list >> javac -d . -classpath ".:.:$CLASSPATH" -g @tmp-sources1.list >> ./gnu/lists/CharSeq.java:11: error: types CharSequence and Sequence a= re incompatible; >> public interface CharSeq >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^ >> =C2=A0 interface CharSeq inherits abstract and default for isEmpty() f= rom types CharSequence and Sequence >> =C2=A0 where E is a type-variable: >> =C2=A0=C2=A0=C2=A0 E extends Object declared in interface Sequence > I'm trying the latest (gitlab) Kawa with the JDK 17 (general release toda= y). > I'm not seeing this error. I'm seeing the warnings, most of which seem t= o > be easily fixable (by using 'Integer.valueOf' instead of 'new Integer' et= c); > I'm working on those now. >