From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tristan Colgate Newsgroups: gmane.lisp.guile.user Subject: duplicate-handlers issue Date: Tue, 5 Jan 2010 22:05:18 +0000 Message-ID: <2e6d10881001051405l6415f7fue3d4d7edb131b259@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0016e6dab11b8ba087047c72089f X-Trace: ger.gmane.org 1262737712 19062 80.91.229.12 (6 Jan 2010 00:28:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jan 2010 00:28:32 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jan 06 01:28:25 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NSJl8-0002so-NI for guile-user@m.gmane.org; Wed, 06 Jan 2010 01:28:23 +0100 Original-Received: from localhost ([127.0.0.1]:56914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSJl9-0006Az-1q for guile-user@m.gmane.org; Tue, 05 Jan 2010 19:28:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSHWs-00078Y-1y for guile-user@gnu.org; Tue, 05 Jan 2010 17:05:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSHWm-000701-Ft for guile-user@gnu.org; Tue, 05 Jan 2010 17:05:28 -0500 Original-Received: from [199.232.76.173] (port=42101 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSHWm-0006zo-5U for guile-user@gnu.org; Tue, 05 Jan 2010 17:05:24 -0500 Original-Received: from mail-ew0-f224.google.com ([209.85.219.224]:52086) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSHWk-0002De-W0 for guile-user@gnu.org; Tue, 05 Jan 2010 17:05:23 -0500 Original-Received: by ewy24 with SMTP id 24so19716952ewy.26 for ; Tue, 05 Jan 2010 14:05:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=vITEbYi+zj1apIPOyH3sZLspty6dYDOmWNd3nzo9GHo=; b=TXfOQlz54VzhGeXYm2uPr0Xkv2W+lQCnXetlDeIEtNJfXebDRHAp8VJD3fQ/bUbnQt uXouQ/KxTxxAlyrl5bNv9jWbz9vyMNOsSrFhsVYgoE6BqphJn4DWkYHjevVEwHJN+sIc 48HAtRtPtc8ne5pfqPd+Pe052kmhp3/h3s+KA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=F30ydQiJbGYFkhVz7D2dSaQieTI9+XUP3jmMzHGP2w3NWisvxj9TG7nd28MtPXccS0 G0umPKq1VEmkBeuw9f/ESZlRBoCDBqDezG2Nvdx9r2gg4/LbQpnSComFoBD9MNP9jgDO q0UPF+qtIxiwGS9RfMJUvrjWiyva1t01noEn0= Original-Received: by 10.216.86.200 with SMTP id w50mr7626121wee.173.1262729118326; Tue, 05 Jan 2010 14:05:18 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7597 Archived-At: --0016e6dab11b8ba087047c72089f Content-Type: text/plain; charset=ISO-8859-1 Hi, [This is actually using 1.9, but I think I'm probably doing something wrong rather than it being a bug] I have a module that uses a lazy binder. Under 1.9 it is working fine but I get warnings about symbol duplication (the lazy binder is quite aggressive and will match just about anything)under 1.8 I didn't get the warnings, but they seem reasonable. To try and get rid of the warnings I've tried implementing a custom duplicate-handlers method to defer any duplicates from my lazy binder to whatever is trying to override them without warnings. I am seeing some very odd behaviour. On the initial compile things work as expected. If I keep deleting ~/.cache it keeps workings. If I don't delete the cache then it doesnt work and complains about trying to apply the name of my dupli-removing function. What's even odder is that if I disable auto-compilation, delete cache, and run it, it doesn't work either. I've reduced it down to the attached files. run $ guile -L . test.scm then run it again any help would be very much appreciated. -- Tristan Colgate-McFarlane ---- "You can get all your daily vitamins from 52 pints of guiness, and a glass of milk" --0016e6dab11b8ba087047c72089f Content-Type: application/vnd.lotus-screencam; name="testmodule.scm" Content-Disposition: attachment; filename="testmodule.scm" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g438e91l0 KGRlZmluZS1tb2R1bGUgKHRlc3Rtb2R1bGUpCiAgIzpleHBvcnQtc3ludGF4IChpbml0LW1vZHVs ZSkKKQooZGVmaW5lIG1vZHVsZTphdXRvcmVzb2x2ZSAjdCkKKGRlZmluZS1zeW50YXggaW5pdC1t b2R1bGUKICAoc3ludGF4LXJ1bGVzICgpCiAgICAoKGluaXQtbW9kdWxlKQogICAgICAoYmVnaW4g CiAgICAgICAgKGRlZmluZSAobGF6eS1iaW5kZXIgbW9kIHN5bSBkZWY/KQogICAgICAgICAgKGlm IChhbmQgbW9kdWxlOmF1dG9yZXNvbHZlIChub3QgZGVmPykpCiAgICAgICAgICAgICAgKGlmIChl cXVhbD8gImZ0ZWxsIiAoc3ltYm9sLT5zdHJpbmcgc3ltKSkKICAgICAgICAgICAgICAgIChsZXQq ICgodmFyIChtYWtlLXZhcmlhYmxlICIuLi50aGUgc2hvcCBrZWVwZXIgYXBwZWFyZWQiKSkpCiAg ICAgICAgICAgICAgICAgIChtb2R1bGUtYWRkISBtb2Qgc3ltIHZhcikKICAgICAgICAgICAgICAg ICAgdmFyKQogICAgICAgICAgICAgICAgI2YpCiAgICAgICAgICAgICAgI2YpKQogICAgICAgICAg KGRlZmluZSBtb2R1bGUgKG1ha2UtbW9kdWxlIDMxICcoKSBsYXp5LWJpbmRlcikpCiAgICAgICAg ICAoZGVmaW5lIChjdXN0b21kdXBsaSBtb2R1bGUgbmFtZSBpbnQxIHZhbDEgaW50MiB2YWwyIHZh ciB2YWwpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAoZm9ybWF0IChjdXJyZW50LWVycm9yLXBvcnQpCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJDdXN0b210aGluZyB+QTog fkE6IGB+QScgaW1wb3J0ZWQgZnJvbSBib3RoIH5BIGFuZCB+QVxuIgogICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtb2R1bGUKICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKG1v ZHVsZS1uYW1lIG1vZHVsZSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgbmFtZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAobW9kdWxlLW5hbWUgaW50MSkKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKG1vZHVs ZS1uYW1lIGludDIpKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgI2YpIAogICAgICAgICAgKG1vZHVsZS1kZWZpbmUhIGR1cGxpY2F0ZS1o YW5kbGVycyAnY3VzdG9tZHVwbGkgY3VzdG9tZHVwbGkpIAogICAgICAgICAgKGxldCAoKGNoICht b2R1bGUtZHVwbGljYXRlcy1oYW5kbGVycyAoY3VycmVudC1tb2R1bGUpKSkpCiAgICAgICAgICAg IChzZXQtbW9kdWxlLWR1cGxpY2F0ZXMtaGFuZGxlcnMhIChjdXJyZW50LW1vZHVsZSkgCiAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChhcHBlbmQgKGxpc3QgJ2N1 c3RvbWR1cGxpKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIChpZiAoZXE/IGNoICNmKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgKGRlZmF1bHQtZHVwbGljYXRlLWJpbmRpbmctaGFuZGxlcikK ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNo KSkpKQogICAgICAgICAgKHNldC1tb2R1bGUtbmFtZSEgbW9kdWxlICIodGVzdCBteWJpbmRlciki KQogICAgICAgICAgKHNldC1tb2R1bGUtdXNlcyEgKGN1cnJlbnQtbW9kdWxlKSAKICAgICAgICAg ICAgKGFwcGVuZCAobGlzdCBtb2R1bGUpIChtb2R1bGUtdXNlcyAoY3VycmVudC1tb2R1bGUpKSkp KSkpKQoK --0016e6dab11b8ba087047c72089f Content-Type: application/vnd.lotus-screencam; name="test.scm" Content-Disposition: attachment; filename="test.scm" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g438ekhy1 KHVzZS1tb2R1bGVzICh0ZXN0bW9kdWxlKSkKCihpbml0LW1vZHVsZSkKCihkaXNwbGF5IGZ0ZWxs KShuZXdsaW5lKQo= --0016e6dab11b8ba087047c72089f--