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: Wed, 3 Aug 2011 09:28:37 -0300 Message-ID: <20110803092837.25dbc828@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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1312374541 27027 80.91.229.12 (3 Aug 2011 12:29:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2011 12:29:01 +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 Wed Aug 03 14:28:56 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 1QoaZC-0004Q1-97 for guile-bugs@m.gmane.org; Wed, 03 Aug 2011 14:28:54 +0200 Original-Received: from localhost ([::1]:42996 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoaZB-0004rs-RS for guile-bugs@m.gmane.org; Wed, 03 Aug 2011 08:28:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoaZ9-0004rX-Gm for bug-guile@gnu.org; Wed, 03 Aug 2011 08:28:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QoaZ8-0001ie-DC for bug-guile@gnu.org; Wed, 03 Aug 2011 08:28:51 -0400 Original-Received: from maximusconfessor.all2all.org ([62.58.108.13]:58812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoaZ8-0001ia-5h; Wed, 03 Aug 2011 08:28:50 -0400 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 94CB6A04C356; Wed, 3 Aug 2011 14:28:48 +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 bwqp3+QJiiAp; Wed, 3 Aug 2011 14:09:41 +0200 (CEST) Original-Received: from rascar (unknown [189.60.162.202]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 7A228A04C25A; Wed, 3 Aug 2011 14:28:40 +0200 (CEST) In-Reply-To: <87aack3jif.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:5751 Archived-At: Hi Andy, Ludovic, Any news about the following problem I reported ? I am kindly pinging you both, as it is very difficult to [smoothly] work with goops until this problem is solved - unless, on purpose, you do not give identical names to any slot pertaining to different classes, but this is kind of a 'nightmare' in a 'real world'. Thanks, David ;; -- > Ah, funny, I thought the version would always correspond to what you > had. But that is not the case: > > wingo@badger:~/src/guile$ git describe > v2.0.2-7-gae88d9b > wingo@badger:~/src/guile$ meta/guile > GNU Guile 2.0.2.4-c1e3e > > I guess what I meant was that you needed a newer Guile, but you might > have a new enough one. Hmm. I think I did put a finger on some deeper problem! At first, as it is still is not working here in a more 'complex environment', I did build a slightly modified version using gtk but not yet 'realizing' the widgets [attached]. It seemed it worked on one machine but not on the other. Suspecting a 'strange' collateral effect on whether I did or not put (default-duplicate-binding-handler '(merge-generics replace warn-override-core warn last)) in my init.scm file, using or not the #:duplicates ... in mg-wgtk-3.scm and, couple of hours later, almost ready to knock my head on the wall while just trying to simply produce a reproducable 'something' for you. :), than I spotted it! it only works the first time! then guile compiles and caches the .go files but does something 'different' in memory [I guess] the second time, it load the .go and fails to dispatch Here is a track on the 'latest' version [by number at least]: In a terminal: [I first remove the *.go concerned files [the location will depend off course ...] david@rascar:~/.cache/guile/ccache/2.0-LE-4-2.0/usr/local/share/guile/alto/2.0/tests 6 $ rm -f *.go david@rascar:~/.cache/guile/ccache/2.0-LE-4-2.0/usr/local/share/guile/alto/2.0/tests 7 $ ll total 0 In my emacs: david@rascar:~ 13 $ guile-gnome-2 GNU Guile 2.0.2.7-ae88d ... scheme@(guile-user)> (use-modules (mg-wgtk-3)) (letstry) ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /usr/local/share/guile/alto/2.0/tests/mg-wgtk-3.scm ;;; compiling /usr/local/share/guile/alto/2.0/tests/mg-wgtk-1.scm ;;; compiled /usr/alto/staff/david/.cache/guile/ccache/2.0-LE-4-2.0/usr/local/share/guile/alto/2.0/tests/mg-wgtk-1.scm.go ;;; compiling /usr/local/share/guile/alto/2.0/tests/mg-wgtk-2.scm ;;; compiled /usr/alto/staff/david/.cache/guile/ccache/2.0-LE-4-2.0/usr/local/share/guile/alto/2.0/tests/mg-wgtk-2.scm.go WARNING: (mg-wgtk-3): `dialog' imported from both (mg-wgtk-1) and (mg-wgtk-2) ;;; compiled /usr/alto/staff/david/.cache/guile/ccache/2.0-LE-4-2.0/usr/local/share/guile/alto/2.0/tests/mg-wgtk-3.scm.go Top level dialog: #< 9ab4d10> Printing dialog: #< 9ab4600> $1 = #t scheme@(guile-user)> ,q david@rascar:~ 14 $ guile-gnome-2 GNU Guile 2.0.2.7-ae88d ... scheme@(guile-user)> (use-modules (mg-wgtk-3)) (letstry) WARNING: (mg-wgtk-3): `dialog' imported from both (mg-wgtk-1) and (mg-wgtk-2) ERROR: In procedure scm-error: ERROR: No applicable method for #< dialog (1)> in call (dialog #< a1ccba0>) Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.