unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Jan Wedekind <jan@wedesoft.de>
To: David Pirotte <david@altosw.be>
Cc: Andy Wingo <wingo@pobox.com>, guile-devel@gnu.org
Subject: Re: GNU Guile 2.1.4 released [beta]
Date: Fri, 16 Sep 2016 21:42:40 +0100 (BST)	[thread overview]
Message-ID: <alpine.DEB.2.11.1609162130250.7525@wedemob> (raw)
In-Reply-To: <20160916124951.2499a660@capac>

On Fri, 16 Sep 2016, David Pirotte wrote:
> Jan,
>
>> I haven't managed to isolate it properly but I observed some strange
>> problem with "concatenate" (using my "aiscm" library).
>
>>      (define-method (match (i <integer>) . args) ...)
>>      ...
>>      (apply match (concatenate (list (list 1) (list 2 2 3 4 5 6 ))))
>>      oop/goops.scm:1336:2: oop/goops.scm:1336:2: In procedure vector-ref: Value
>> out of range: 7
>
> 	impossible to help you on this because the snipset is incomplete
> 	please provide a complete match definition
>
> Also, I think match is really a 'problematic' name, because it is defined in
> (ice-9 match), and most of us almost  always import this module.
>
> Chers,
> David
>

Hi David,

I managed to create a failing test. After a certain number of 
differently typed calls there is an error in "multiple-arity-dispatcher":

     (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); add more calls as needed
     ;(native-type #f #t); add more calls as needed
;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.
     ,bt
;In oop/goops.scm: 
;While executing meta-command: 
;ERROR: In procedure vector-set!: Value out of range: 5

I hope you can fix it. I can have a look as well but I don't understand 
the code well enough at the moment.

Regards
Jan



  parent reply	other threads:[~2016-09-16 20:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-14 11:41 GNU Guile 2.1.4 released [beta] Andy Wingo
2016-09-14 17:45 ` Nala Ginrut
2016-09-15 19:19 ` Jan Wedekind
2016-09-15 19:44   ` David Pirotte
2016-09-15 20:00     ` Jan Wedekind
2016-09-15 19:45 ` Jan Wedekind
2016-09-15 20:07   ` Jan Wedekind
2016-09-16 15:49   ` David Pirotte
2016-09-16 19:42     ` Jan Wedekind
2016-09-16 20:42     ` Jan Wedekind [this message]
2016-09-17 14:07       ` David Pirotte
2016-09-18 13:42         ` Jan Wedekind

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.11.1609162130250.7525@wedemob \
    --to=jan@wedesoft.de \
    --cc=david@altosw.be \
    --cc=guile-devel@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).