From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.bugs Subject: bug#18245: [master branch] Useless imported module cause strange problem Date: Tue, 12 Aug 2014 09:46:47 +0800 Message-ID: References: <1407748488.5167.7.camel@Renee-desktop.suse> <874mxjqc13.fsf@yeeloong.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134997a341020050064d8e9 X-Trace: ger.gmane.org 1407808045 7288 80.91.229.3 (12 Aug 2014 01:47:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2014 01:47:25 +0000 (UTC) Cc: 18245@debbugs.gnu.org, request@debbugs.gnu.org To: Mark H Weaver Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Aug 12 03:47:18 2014 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XH1BE-0007aY-Vx for guile-bugs@m.gmane.org; Tue, 12 Aug 2014 03:47:17 +0200 Original-Received: from localhost ([::1]:38630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XH1BE-0006Ci-LR for guile-bugs@m.gmane.org; Mon, 11 Aug 2014 21:47:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XH1B6-0006CZ-Du for bug-guile@gnu.org; Mon, 11 Aug 2014 21:47:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XH1B1-00049s-Bg for bug-guile@gnu.org; Mon, 11 Aug 2014 21:47:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XH1B1-00049i-86 for bug-guile@gnu.org; Mon, 11 Aug 2014 21:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XH1B0-000636-OI for bug-guile@gnu.org; Mon, 11 Aug 2014 21:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nala Ginrut Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 12 Aug 2014 01:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18245 X-GNU-PR-Package: guile X-GNU-PR-Keywords: notabug Original-Received: via spool by 18245-submit@debbugs.gnu.org id=B18245.140780801723239 (code B ref 18245); Tue, 12 Aug 2014 01:47:02 +0000 Original-Received: (at 18245) by debbugs.gnu.org; 12 Aug 2014 01:46:57 +0000 Original-Received: from localhost ([127.0.0.1]:39799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XH1Au-00062h-Q6 for submit@debbugs.gnu.org; Mon, 11 Aug 2014 21:46:57 -0400 Original-Received: from mail-la0-f49.google.com ([209.85.215.49]:38348) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XH1As-00062M-6H; Mon, 11 Aug 2014 21:46:55 -0400 Original-Received: by mail-la0-f49.google.com with SMTP id hz20so7184083lab.8 for ; Mon, 11 Aug 2014 18:46:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VbvrBRYlCosRw2uQRfANch0GuU7Nrjh6+cAhfwotc2I=; b=EzSiU+QZMCMv5oqy3Uaq055gG3UYSyIusKdWgyH+mpMrGEDnvbS0y9U+ih0MGKIWiB V4Llg1ZifFFavbWsPvFWtOk/cTQLqbQ4sHzZXawZ+lFAunCNmETtePb3p92x4PTRqy0E NACba9btyaDJ76Dv4Dt370vv2p1lNGBuTwZM94HoVhxcpofrHDUJizYcnjEYWBfU+seZ hpMNYBdUmh4+mKlUmVVk5TobUZsGi0b6EJfWFPfbZtBCFHLwXf/Ozi4znRnzjXfYKY5y w6prRXcw+8SjGW0KnO1NenMmKh5E7FB8G6Lf4+RmlAaM/UKVz3M3Hkx9XZB7ca/I/Ehh qEsA== X-Received: by 10.112.24.167 with SMTP id v7mr1086733lbf.19.1407808007571; Mon, 11 Aug 2014 18:46:47 -0700 (PDT) Original-Received: by 10.152.122.99 with HTTP; Mon, 11 Aug 2014 18:46:47 -0700 (PDT) Original-Received: by 10.152.122.99 with HTTP; Mon, 11 Aug 2014 18:46:47 -0700 (PDT) In-Reply-To: <874mxjqc13.fsf@yeeloong.lan> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7538 Archived-At: --001a1134997a341020050064d8e9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2014=E5=B9=B48=E6=9C=8811=E6=97=A5 =E4=B8=8B=E5=8D=8811:31=E4=BA=8E "Mark H= Weaver" =E5=86=99=E9=81=93=EF=BC=9A > > tags 18245 notabug > close 18245 > thanks > > The problem is that srfi-1 exports a 'drop' procedure, and 'drop' is > also used as a syntax-rules literal in your macros. Literals are > matched as follows: if the literal identifier has the same name and the > same binding where the macro is defined and where it is used, then > there's a match. If the identifier is not bound in either place, then > there's also a match. > Thanks for explaining! The issue can't be reproduced in stable-2.0, so I suspected it's a potential bug. > > I recommend choosing literals that are not likely to be bound in modules > that use your sql macros. > Or import srfi-1 with a proper prefix :-) Thanks! --001a1134997a341020050064d8e9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2014=E5=B9=B48=E6=9C=8811=E6=97=A5 =E4=B8=8B=E5=8D=8811:31=E4=BA=8E "M= ark H Weaver" <mhw@netris.org= >=E5=86=99=E9=81=93=EF=BC=9A
>
> tags 18245 notabug
> close 18245
> thanks
>

> The problem is that srfi-1 exports a 'drop' pro= cedure, and 'drop' is
> also used as a syntax-rules literal in your macros. =C2=A0Literals are=
> matched as follows: if the literal identifier has the same name and th= e
> same binding where the macro is defined and where it is used, then
> there's a match. =C2=A0If the identifier is not bound in either pl= ace, then
> there's also a match.
>

Thanks for explaining!
The issue can't be reproduced in stable-2.0, so I suspected it's a = potential bug.

>
> I recommend choosing literals that are not likely to be bound in modul= es
> that use your sql macros.
>

Or import srfi-1 with a proper prefix :-)

Thanks!

--001a1134997a341020050064d8e9--