bug-guile
[Top][All Lists]
Advanced

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

Re: module system / (oop goops) / :duplicates (merge-generics) / bug?


From: David Pirotte
Subject: Re: module system / (oop goops) / :duplicates (merge-generics) / bug?
Date: Mon, 29 Aug 2011 14:05:18 -0300

Hi Andy,
Ludovic,

> > I fixed it!
> 
> Thank you very much! The examples I sent earlier now all work, but I still 
> have a
> problem ...

I finally could reproduce the problem and wrote an example you can run 'in the 
cafe
without internet' :) [hopefully] 

        in addition to the comments here below, please note that these examples
        further differs from previous 'versions' I sent in the passed in the 
sense
        that they now also use (gnome glade)

If you drop the attached somewhere in your %load-path, then you can try the
following 2 tests, one which [here] produces a segfault and the other which
works fine. The only 'important' difference between these 2 tests is expressed 
by
diff mg-wgtk-0 mg-wgtk-1:

        mg-wgtk-0 defines and export an additional slot which is named 
glade-file
        [which is then used by mg-wgtk-3 ...]

This should or crash guile or produce an error [the behavior of guile itself is 
not
systematic [here], but it always 'fails':

        mg-wgtk-3       uses    mg-wgtk-0
                                                mg-wgtk-2

        guile-gnome-2
        (use-modules (mg-wgtk-3))
        (letstry)
        ->      Top level dialog: #<<gtk-window> a2bbbc0>
                Printing dialog: Segmentation fault


This will work fine:

        mg-wgtk-4       uses    mg-wgtk-1
                                                mg-wgtk-2
        guile-gnome-2
        (use-modules (mg-wgtk-4))
        (letstry)
        ->      Top level dialog: #<<gtk-window> 8b86c30>
                Printing dialog: #<<gtk-dialog> 8b89110>


Many thanks,
David


Attachment: mg-wgtk-0.scm
Description: Text Data

Attachment: mg-wgtk-1.scm
Description: Text Data

Attachment: mg-wgtk-2.scm
Description: Text Data

Attachment: mg-wgtk-3.scm
Description: Text Data

Attachment: mg-wgtk-4.scm
Description: Text Data


reply via email to

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