emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#24454: closed (GOOPS problem with GNU Guile 2.1.4


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#24454: closed (GOOPS problem with GNU Guile 2.1.4 )
Date: Wed, 22 Feb 2017 22:13:01 +0000

Your message dated Wed, 22 Feb 2017 23:11:55 +0100
with message-id <address@hidden>
and subject line Re: bug#24454: GOOPS problem with GNU Guile 2.1.4
has caused the debbugs.gnu.org bug report #24454,
regarding GOOPS problem with GNU Guile 2.1.4 
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
24454: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24454
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: GOOPS problem with GNU Guile 2.1.4 Date: Sat, 17 Sep 2016 21:43:32 +0100 (BST) User-agent: Alpine 2.11 (DEB 23 2013-08-11)
Hi,

The following program works fine under GNU Guile 2.0.12:

    (use-modules (oop goops))
    (define-generic native-type)
    (define-method (native-type (i <integer>) . args) 0)
    (define-method (native-type (i <real>) . args) 1)
    (define-method (native-type (b <boolean>) . args) 2)

    (native-type 1)
    (native-type 1.3)
    (native-type #f)
    (native-type 1 1.2)
    (native-type 1.4 2)
    (native-type 1.4 2 3)
    (native-type 1.4 1.5)
    (native-type #f #t)

However under GNU Guile 2.1.4 [1] it fails with an error in "multiple-arity-dispatcher":

    oop/goops.scm:1336:2: oop/goops.scm:1336:2: In procedure vector-ref: Value 
out of range: 3

    Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.

Getting the backtrace didn't work:

    ,bt
    In oop/goops.scm:
    While executing meta-command:
    ERROR: In procedure vector-set!: Value out of range: 5

Regards
Jan

[1] http://alpha.gnu.org/gnu/guile/guile-2.1.4.tar.xz



--- End Message ---
--- Begin Message --- Subject: Re: bug#24454: GOOPS problem with GNU Guile 2.1.4 Date: Wed, 22 Feb 2017 23:11:55 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
On Sat 17 Sep 2016 22:43, Jan Wedekind <address@hidden> writes:

> The following program works fine under GNU Guile 2.0.12:
>
>     (use-modules (oop goops))
>     (define-generic native-type)
>     (define-method (native-type (i <integer>) . args) 0)
>     (define-method (native-type (i <real>) . args) 1)
>     (define-method (native-type (b <boolean>) . args) 2)
>
>     (native-type 1)
>     (native-type 1.3)
>     (native-type #f)
>     (native-type 1 1.2)
>     (native-type 1.4 2)
>     (native-type 1.4 2 3)
>     (native-type 1.4 1.5)
>     (native-type #f #t)
>
> However under GNU Guile 2.1.4 [1] it fails with an error in
> "multiple-arity-dispatcher":

Thanks for the bug report!  Fixed in master.

> Getting the backtrace didn't work:

Oops :P  I fixed this too.

Cheers,

Andy


--- End Message ---

reply via email to

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