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: Re: duplicate-handlers issue Date: Wed, 6 Jan 2010 14:41:52 +0000 Message-ID: <2e6d10881001060641r2373d274k622290b518964432@mail.gmail.com> References: <2e6d10881001051405l6415f7fue3d4d7edb131b259@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1262788942 16731 80.91.229.12 (6 Jan 2010 14:42:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jan 2010 14:42:22 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jan 06 15:42:11 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 1NSX5J-0007nL-81 for guile-user@m.gmane.org; Wed, 06 Jan 2010 15:42:05 +0100 Original-Received: from localhost ([127.0.0.1]:38395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSX5J-00077i-Q2 for guile-user@m.gmane.org; Wed, 06 Jan 2010 09:42:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSX5F-00074v-6w for guile-user@gnu.org; Wed, 06 Jan 2010 09:42:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSX59-0006rq-VY for guile-user@gnu.org; Wed, 06 Jan 2010 09:42:00 -0500 Original-Received: from [199.232.76.173] (port=43906 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSX59-0006rX-QP for guile-user@gnu.org; Wed, 06 Jan 2010 09:41:55 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:17417) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NSX59-0000ja-FM for guile-user@gnu.org; Wed, 06 Jan 2010 09:41:55 -0500 Original-Received: from mail-ew0-f224.google.com ([209.85.219.224]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSX58-0003zk-SG for guile-user@gnu.org; Wed, 06 Jan 2010 09:41:55 -0500 Original-Received: by ewy24 with SMTP id 24so20445085ewy.26 for ; Wed, 06 Jan 2010 06:41:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=EyKGXF+FKX2hBjweDchBSXWTg4KXwfAmUciv62pSwmg=; b=nWc5QmGGJuLEfSaJ452HZyBXBc2SeoLLpGWZzdwP0HHNlDp6xkea6aJY1YmWAt4yVk mG4fUNHLHA/3loYfcyjpMdphiqp8J3WUKlsNfqgsHVqTyYe6xhvbKzbZ/oYoqChcE+j1 a+xR46E/su2miUItQrQpcayLCHDR0Bu5/gnog= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=L9TOdwqJYdoN6bWS5kHyFceYeMJMfx61OIZBGvgkGcnkL1Op0jwyXpgkC5QGBV3br8 BZ0UgzZ+Q5mDuO7wz3zU0A9H9enZxUwxE6RacJfCUYORF+8OsnfhmtNUhPRgj72H4nZ7 PcPmhKht/l/Kch7cKh0Lh7a/4caoHhQhBwSGw= Original-Received: by 10.216.90.78 with SMTP id d56mr403024wef.126.1262788912804; Wed, 06 Jan 2010 06:41:52 -0800 (PST) In-Reply-To: <2e6d10881001051405l6415f7fue3d4d7edb131b259@mail.gmail.com> X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:7600 Archived-At: I've subsequently fixed this, set-module-duplicates-handlers! takes a list of procedures, not the names used by #:duplicates. Perhaps the naming convention is a little iffy here (handlers/procedures), but I don't think it's really a public interface anyway. Cheers 2010/1/5 Tristan Colgate : > Hi, > > =A0[This is actually using 1.9, but I think I'm probably doing > something wrong rather than it being a bug] > > =A0I 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. > > =A0To 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. > > =A0I 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. > > =A0I've reduced it down to the attached files. > > =A0run > =A0$ guile -L . test.scm > =A0then run it again > > =A0any help would be very much appreciated. > > -- > Tristan Colgate-McFarlane > ---- > =A0"You can get all your daily vitamins from 52 pints of guiness, and a > glass of milk" > --=20 Tristan Colgate-McFarlane ---- "You can get all your daily vitamins from 52 pints of guiness, and a glass of milk"