From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58756 invoked by alias); 3 Oct 2017 15:35:59 -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 58746 invoked by uid 89); 3 Oct 2017 15:35:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,KAM_EU,MISSING_HEADERS,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=N, H*c:alternative, sk:resulta, logs X-HELO: mail-oi0-f46.google.com Received: from mail-oi0-f46.google.com (HELO mail-oi0-f46.google.com) (209.85.218.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Oct 2017 15:35:57 +0000 Received: by mail-oi0-f46.google.com with SMTP id n82so14933706oib.8 for ; Tue, 03 Oct 2017 08:35:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=PoAGFCS4VXG6SepLyyfJ21Z5P/+YcutCdLtLDNNUD/4=; b=d1tdLxJqC+yK4u1l6vAt4c3+RACREDlHMzILsEOQDDYSRA5YAYIKrpvysGVfMqp08o sOsxg8gX9x8ZYhsyYDtF4hWrWqkL8NlgnibAwClBIropP4aHRTTxq3PzrRK2AtfomhDZ zn+mnVmhb3GNFxDrS4odQw7DgsXor3FQmvhyXo0RYljTz6Mbs3Yvd1MPvRXiaxg+I6Nb vnfFelFsBNbTKBDGS49Bs8bHB6XqYiAlUn6SeRfipPYGp/do1Tvsu5SFO5QFaSVIMWVG 1dT2MVQuRcgUdBImf51Q2vA+elFwHeRi7qhpHKkIJwKlcvaQ4LPZlOmRtdhVGys0Icff f+4A== X-Gm-Message-State: AMCzsaW8hRbFQt9j3YROgRvpQ+mP+NzjUF5LYC15ZyBLd+h28ypZX654 xLFpnUM+hzEgAZrqNxoCS2NA1ZokqtxehjSuA5ZkEA== X-Google-Smtp-Source: AOwi7QCB8kzWa//JN+mN3Ovo/RL/hVHBxfZMCfR7/yNDbAoYvIC/x7Zj9r2fHlfetJitJUI8MiyrruAMdBwtrKPHXpQ= X-Received: by 10.202.49.14 with SMTP id x14mr8547979oix.425.1507044955260; Tue, 03 Oct 2017 08:35:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.113.195 with HTTP; Tue, 3 Oct 2017 08:35:34 -0700 (PDT) In-Reply-To: References: <201710031541.24999.Damien.Mattei@unice.fr> <23940.1507044081@vereq.eip10.org> From: Damien Mattei Date: Tue, 03 Oct 2017 15:35:00 -0000 Message-ID: Subject: Re: variable definition in include files not usable in class file Cc: Kawa mailing list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-q4/txt/msg00004.txt.bz2 i wanted to say 'can not explain' in my previous message Regards, damien On Tue, Oct 3, 2017 at 5:33 PM, Damien Mattei wrote: > possible, but i can explain it works in Bigloo if this one does not > respect hygienic expansion, but Bigloo do it: > https://www-sop.inria.fr/indes/fp/Bigloo/doc/bigloo-25. > html#Macro-expansion > if there were some hygienic caveit in my macro definitions , it would fail > with Bigloo Scheme too, > but it works as you can see in this ouput of logs, when running another > portion of the code that use exactly the same debug macros, debug-macro is > well defined (#t): > > Sidonie : ResultatMesuresF : postHandler : identificateur :N=C2=B0 BD > BiglooCode.scm :: ResultatMesuresF :: debug-mode =3D #t > BiglooCode.scm :: ResultatMesuresF :: nombreobjets =3D 0 > BiglooCode.scm :: ResultatMesuresF :: bstr_identificateur =3D N=C2=B0 BD > BiglooCode.scm :: ResultatMesuresF :: bstr_objet =3D 56.130 > BiglooCode.scm :: ResultatMesuresF :: len_identificateur =3D 6 > BiglooCode.scm :: ResultatMesuresF :: (string? bstr_identificateur) =3D #f > BiglooCode.scm :: ResultatMesuresF :: identificateur =3D N=C2=B0 BD > BiglooCode.scm :: ResultatMesuresF :: (string? identificateur) =3D #t > TEST N=C2=B0 BD > TEST N=C2=B0 BD > BiglooCode.scm :: ResultatMesuresF :: essai =3D TEST N=C2=B0 BD > BiglooCode.scm :: ResultatMesuresF :: identificateur =3D N=C2=B0 BD > BiglooCode.scm :: ResultatMesuresF :: (string? essai) =3D #t > BiglooCode.scm :: ResultatMesuresF :: (string=3D? identificateur "" ) = =3D #f > > Sidonie : DataBase : searchDriver : driver found > Sidonie : DataBase : connectStatic : Hostname =3D moita.oca.eu > Sidonie : DataBase : connectStatic : using localhost as computer name and > mattei as user for sidonie database > Sidonie : DataBase : connectStatic : connection established > Sidonie : DataBase : createStatementStatic : done > > debug.scm : debug-display-nl : debug-mode =3D #t > BiglooCode.scm :: ResultatMesuresF :: choixres =3D > Ref > debug.scm : debug-display-nl : debug-mode =3D #t > BiglooCode.scm :: ResultatMesuresF :: (cond : Ref > debug.scm : debug-display-nl : debug-mode =3D #t > > Damien > > > On Tue, Oct 3, 2017 at 5:21 PM, Sudarshan S Chawathe > wrote: > >> I did not get a chance to look at your code carefully but, based on a >> very quick look, I suspect that it may be running afoul of >> syntactic-hygiene rules. In particular, I believe that the identifier >> debug-mode used in the syntax-definitions of 'debug', etc., cannot refer >> to the top-level debug-mode variable due to hygiene rules. >> >> Regards, >> >> -chaw >> >> >