From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#19459: #:export does not honor the merge-generics contract Date: Wed, 22 Jun 2016 22:21:48 +0200 Message-ID: <87vb11q8ir.fsf@pobox.com> References: <20141228162024.048ca208@capac> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466626963 1877 80.91.229.3 (22 Jun 2016 20:22:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2016 20:22:43 +0000 (UTC) Cc: 19459@debbugs.gnu.org To: David Pirotte Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jun 22 22:22:33 2016 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 1bFofG-0007An-A2 for guile-bugs@m.gmane.org; Wed, 22 Jun 2016 22:22:22 +0200 Original-Received: from localhost ([::1]:60647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFofA-0003SH-GL for guile-bugs@m.gmane.org; Wed, 22 Jun 2016 16:22:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFof2-0003Q7-61 for bug-guile@gnu.org; Wed, 22 Jun 2016 16:22:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFoew-0003I2-VS for bug-guile@gnu.org; Wed, 22 Jun 2016 16:22:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFoew-0003Hy-Gx for bug-guile@gnu.org; Wed, 22 Jun 2016 16:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bFoew-0005uj-Bz for bug-guile@gnu.org; Wed, 22 Jun 2016 16:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 22 Jun 2016 20:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19459 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 19459-submit@debbugs.gnu.org id=B19459.146662692122726 (code B ref 19459); Wed, 22 Jun 2016 20:22:02 +0000 Original-Received: (at 19459) by debbugs.gnu.org; 22 Jun 2016 20:22:01 +0000 Original-Received: from localhost ([127.0.0.1]:51527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFoev-0005uU-Eo for submit@debbugs.gnu.org; Wed, 22 Jun 2016 16:22:01 -0400 Original-Received: from pb-sasl1.pobox.com ([64.147.108.66]:57568 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFoet-0005uM-GJ for 19459@debbugs.gnu.org; Wed, 22 Jun 2016 16:22:00 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id CD1D222FBC; Wed, 22 Jun 2016 16:21:56 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=bpj4XO1ozgjVn45Zm/gVr3FQ0vg=; b=DDsg2a k8mIvhCZ2jOFCA355YnsAcOS6wF5PE+Ap4I03eW5yAtMcl8x85HWCSi4M8O82hHh dSClrwz5PxwbgcKDF6Aq+9f1mv372LU9gnx0qqXwFdyOHdwSlVonHJGAPbg21E+P IJJeQgG+Jk88/s5X6DW6f6YRDaJtgsdoP5ins= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=Kjw/XvNxm83Q1n8QJeeVPN5YlhTpzUUX znCJZLHPbW15Bf1anv0cwOzeo4kdGcbjvrtvKOyJ9jE1KCLRZ5CiuCWDC3nwRwKl S+NELacnlYwGM6IlaXztTFuvZlSKOXgVFVRf5L/q0Unc3bpMZ1u2FikFI+tGXwVB RogEPNjjMJI= Original-Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id C663B22FBB; Wed, 22 Jun 2016 16:21:56 -0400 (EDT) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id D3B2A22FBA; Wed, 22 Jun 2016 16:21:55 -0400 (EDT) In-Reply-To: <20141228162024.048ca208@capac> (David Pirotte's message of "Sun, 28 Dec 2014 16:20:24 -0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Pobox-Relay-ID: F714694A-38B6-11E6-B7B6-C1836462E9F6-02397024!pb-sasl1.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.lisp.guile.bugs:8137 Archived-At: Hi, On Sun 28 Dec 2014 19:20, David Pirotte writes: > (define-module (a) > #:use-module (oop goops) > #:export ( > !width > get-width > set-width)) Here you export four bindings: one class and three generics. Those three generics have methods on . > (define-module (b) > #:use-module (oop goops) > #:use-module (a) Here you import the previous four bindings. > #:export ( > !width > get-width > set-width)) However here you declare that you are going to export four new bindings. I believe this is the source of your problem. You are expecting to extend the three generics and re-export them. However to do so you should #:re-export !width, get-width, and set-width. AFAIU there is no bug here. David WDYT? Andy