From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.bugs Subject: Re: module system / (oop goops) / :duplicates (merge-generics) / bug? Date: Fri, 19 Aug 2011 02:40:43 -0300 Message-ID: <20110819024043.74a4d71e@rascar> References: <20110705183229.6f779a6b@rascar> <87vcvfcrjc.fsf@gnu.org> <20110706162244.2bf4b90a@rascar> <87ipre48zj.fsf@pobox.com> <20110707132659.2cee382d@rascar> <87box54xjg.fsf@pobox.com> <20110708140559.6ed55cd9@rascar> <87tyav3h7q.fsf@pobox.com> <20110709120816.0827236b@rascar> <87aack3jif.fsf@pobox.com> <20110711222555.4bd45679@rascar> <87bovngf01.fsf@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1313732466 11398 80.91.229.12 (19 Aug 2011 05:41:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Aug 2011 05:41:06 +0000 (UTC) Cc: bug-guile@gnu.org, Ludovic =?UTF-8?B?Q291cnTDqHM=?= To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Aug 19 07:41:01 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QuHpF-0001FA-Mg for guile-bugs@m.gmane.org; Fri, 19 Aug 2011 07:41:01 +0200 Original-Received: from localhost ([::1]:43941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuHpE-0007Dw-Rw for guile-bugs@m.gmane.org; Fri, 19 Aug 2011 01:41:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuHpC-0007Dr-9J for bug-guile@gnu.org; Fri, 19 Aug 2011 01:40:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuHpA-0007V9-VB for bug-guile@gnu.org; Fri, 19 Aug 2011 01:40:58 -0400 Original-Received: from maximusconfessor.all2all.org ([62.58.108.13]:40828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuHpA-0007Up-Ni; Fri, 19 Aug 2011 01:40:56 -0400 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id E9A2EA04C265; Fri, 19 Aug 2011 07:40:53 +0200 (CEST) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id crqhADn4JMf3; Fri, 19 Aug 2011 07:21:28 +0200 (CEST) Original-Received: from rascar (unknown [189.60.160.15]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 31985A04C25E; Fri, 19 Aug 2011 07:40:45 +0200 (CEST) In-Reply-To: <87bovngf01.fsf@pobox.com> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; i486-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 62.58.108.13 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.14 Precedence: list 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:5785 Archived-At: Hi Andy, Le Thu, 18 Aug 2011 13:01:34 +0200, Andy Wingo a =C3=A9crit : > Hi David, >=20 > I fixed it! Thank you very much! The examples I sent earlier now all work, but I still = have a problem when running my app [the app is working perfectly if I name differe= ntly all exported slot accessors, which I did while you were debugging]: I am trying= to figure out what is happening and hope to get back with a better 'figure' bu= t here is the backtrace I get [below]. note that I did double check [in the gtk-repl before to click the 'print button' which triggers the error] that (default-duplicate-binding-handler) is effectively 'global' [in my init.scm] and returns what 'it should': (merge-generics replace warn-override-core warn last) It is strange because the ERROR mentions No applicable method for #< show (2)> in call (show #) show is the gtk function of course, and the argument I pass should be = the result of the following code extract [of a module which uses many others, 2 of w= hich both export dialog]: ... (define (kp/select-gui tl-widget) (let* ((kp/widget (kp/make-dialog (dialog tl-widget) (glade-file tl-widg= et)))=20 (widget (dialog kp/widget))) (show widget) ... so as if (dialog kp/widget) returned a procedure ? As i said i will try to = or debug or better inform you, but if you have an idea, let me know... Cheers, David ;; --=20 scheme@(guile-user) [1]> Backtrace: In unknown file: ?: 19 [scm-error goops-error #f ...] In ice-9/boot-9.scm: 115: 18 [# = goops-error ...] In ice-9/r4rs.scm: 174: 17 [with-input-from-port #> ...] 178: 16 [with-output-to-port #> ...] 182: 15 [with-error-to-port #> ...] In system/repl/repl.scm: 160: 14 [run-repl #< language: # options: # tm-stats: # gc-stats: # = debug: #>] In ice-9/boot-9.scm: 170: 13 [catch #t # ..= .] In ice-9/r4rs.scm: 174: 12 [with-input-from-port #> ...] In system/repl/repl.scm: 88: 11 [#] 213: 10 [flush-leading-whitespace] In unknown file: ?: 9 [peek-char #] In ice-9/buffered-input.scm: 73: 8 [get-character] 104: 7 [# #t] In gnome/gtk/graphical-repl.scm: 269: 6 [# #t] In unknown file: ?: 5 [%gw:dynamic-procedure # 0xa7e7f28>] In ice-9/boot-9.scm: 170: 4 [catch #t # ...] In unknown file: ?: 3 [catch-closure] In kise/print.scm: 56: 2 [kp/select-gui #< 9ecae00>] In oop/goops/dispatch.scm: 231: 1 [cache-miss # #] In unknown file: ?: 0 [scm-error goops-error #f ...] ERROR: In procedure scm-error: ERROR: No applicable method for #< show (2)> in call (show #)