bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19459: #:export does not honor the merge-generics contract


From: Andy Wingo
Subject: bug#19459: #:export does not honor the merge-generics contract
Date: Wed, 22 Jun 2016 22:21:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Hi,

On Sun 28 Dec 2014 19:20, David Pirotte <address@hidden> writes:

> (define-module (a)
>   #:use-module (oop goops)
>   #:export (<a>
>           !width
>           get-width
>           set-width))

Here you export four bindings: one class and three generics.  Those
three generics have methods on <a>.

> (define-module (b)
>   #:use-module (oop goops)
>   #:use-module (a)

Here you import the previous four bindings.

>   #:export (<b>
>           !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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]