unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: "Daniel Llorens del Río" <daniel.llorens@bluewin.ch>
Cc: guile-devel@gnu.org
Subject: Re: guile arrays in 1.9
Date: Thu, 07 Jan 2010 17:29:13 +0100	[thread overview]
Message-ID: <m3eim1x4iu.fsf@pobox.com> (raw)
In-Reply-To: <053CDA2B-4869-425B-8370-125374A57760@bluewin.ch> ("Daniel Llorens del Río"'s message of "Thu, 7 Jan 2010 16:13:30 +0100")

Hi,

On Thu 07 Jan 2010 16:13, Daniel Llorens del Río <daniel.llorens@bluewin.ch> writes:

> array->list is broken in 1.9.6:

Ooh, I'm definitely the guilty one here. I "cleaned up" this code, with
predictable consequences.

> scheme@(guile-user)>  (array->list #(0 1))
> ERROR: Value out of range: -1

Just pushed a fix.

> Many of the syntaxes from §5.6.7.1 in the manual don't seem to work:
> #2() gives 'unrecognized object', #@2(1 2 3) does work but the bounds
> are ignored (??).  These both work with 1.8.7.
>
> There is a test-suite/tests/unif.c that is mostly unchanged from 1.8.7.
> It doesn't call array->list. Some of the tests there should  fail (e.g.
> the second test in with-test-prefix fails for me in the  REPL) yet
> check-guile.log says it passes.

Could be that the tests are running only with the interpreter, and the
bugs that you're seeing only appear when an array is attempted to be
serialized out to object code.

> Is somebody testing/using this stuff?

You are :-))

More seriously, this code has been around for a long time, but it seems
I broke it recently.
-- 
http://wingolog.org/




  reply	other threads:[~2010-01-07 16:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E4.00.14188.B16CE8A4@mx14>
2010-01-07 15:13 ` guile arrays in 1.9 Daniel Llorens del Río
2010-01-07 16:29   ` Andy Wingo [this message]
     [not found] <BB.EE.17517.DB5164B4@mx21>
2010-01-08 17:41 ` Daniel Llorens del Río
2010-01-09 21:41   ` Andy Wingo
2010-01-09 23:22     ` Daniel Llorens del Río

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=m3eim1x4iu.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=daniel.llorens@bluewin.ch \
    --cc=guile-devel@gnu.org \
    /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).