* shared-array composition bug
@ 2005-04-10 23:16 Kevin Ryde
2005-05-22 17:20 ` Marius Vollmer
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Ryde @ 2005-04-10 23:16 UTC (permalink / raw)
The cvs seems to have a bug in making a shared array from what's
already a shared array,
(define a #2((1 2 3) (4 5 6) (7 8 9)))
(define s (make-shared-array a (lambda (i) (list i 1)) 3))
(display s) (newline)
(define t (make-shared-array s list '(1 2)))
(display t) (newline)
"s" is a shared array which is column 1 of "a", ie. (2 5 8). "t" is
meant to be range 1 to 2 of "s", ie. (5 8), but it comes out as (4 7).
#(2 5 8)
#1@1(4 7)
This works in 1.6, so I'm guessing it's some recent regression.
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: shared-array composition bug
2005-04-10 23:16 shared-array composition bug Kevin Ryde
@ 2005-05-22 17:20 ` Marius Vollmer
0 siblings, 0 replies; 2+ messages in thread
From: Marius Vollmer @ 2005-05-22 17:20 UTC (permalink / raw)
Kevin Ryde <user42@zip.com.au> writes:
> The cvs seems to have a bug in making a shared array from what's
> already a shared array,
Should be fixed now, please check.
2005-05-22 Marius Vollmer <mvo@zagadka.de>
* unif.c (scm_make_shared_array): Add old base to new base since
scm_array_handle_pos does not include the base.
(scm_aind): Likewise.
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-22 17:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-10 23:16 shared-array composition bug Kevin Ryde
2005-05-22 17:20 ` Marius Vollmer
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).