From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57507 invoked by alias); 3 Oct 2017 15:34:05 -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 57494 invoked by uid 89); 3 Oct 2017 15:34:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,KAM_EU,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=N, H*c:alternative, logs, sk:Resulta X-HELO: mail-oi0-f45.google.com Received: from mail-oi0-f45.google.com (HELO mail-oi0-f45.google.com) (209.85.218.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Oct 2017 15:34:02 +0000 Received: by mail-oi0-f45.google.com with SMTP id c77so12901309oig.0 for ; Tue, 03 Oct 2017 08:34:02 -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:to:cc; bh=ulL74v7M3egz+i3I08UTj3Em48Oxv+PYsrAuoydzDMk=; b=bb7ydy0WYMViHKbPR7D4aMXj5u8mOSXa0Shzpd9OtkRYDhfSOQRHfcab/a60UlTmkI C6VPjSCFR/34y+W6QXqmKsqpxYiZRnQ02OY1IGa3T9X+xB5jLDlxsGn1pog5PcfjDskH XkiP0JUfFqs5Qc+u3+KZfSsXYKIVPMa2e50kWkkovH2N4Xd4mk8jYjVt1fBWJMT3RM4E yd0JAHmbOmxPAmqE9xgvthHFyiIm4VmQmsyGN0NIwJFB0UzU/uXgvgfih0If7xYULJ1B tvpwkcBK6PrBuqfXlCMMtJmth5OPuAUJoPYRNIqadSpy8nnRLVd7awvpi5PLlZafZRM6 Z1Cw== X-Gm-Message-State: AMCzsaW1Vi68hrBf0ynT/fz3kxM6gRsaJnKz8VEUhIi6dP5GyAbGF/of gr4fupUPuBrPDqEiDlpYDr2NnARQP1gEtM4Actw= X-Google-Smtp-Source: AOwi7QCbVimUmOcgplhl19+9Hu3c+DZ1cNK2fIdNCP/H0fmmL4J4JKt/UWgrqkLaUiV+krC6UiOLJBaPZNwyGdaLxxc= X-Received: by 10.157.31.22 with SMTP id x22mr9117433otd.79.1507044840857; Tue, 03 Oct 2017 08:34:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.113.195 with HTTP; Tue, 3 Oct 2017 08:33:40 -0700 (PDT) In-Reply-To: <23940.1507044081@vereq.eip10.org> References: <201710031541.24999.Damien.Mattei@unice.fr> <23940.1507044081@vereq.eip10.org> From: Damien Mattei Date: Tue, 03 Oct 2017 15:34:00 -0000 Message-ID: Subject: Re: variable definition in include files not usable in class file To: Sudarshan S Chawathe 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/msg00003.txt.bz2 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 > >