From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: Re: Bug in vector-move-right! Date: Wed, 04 Aug 2010 21:48:13 +0200 Message-ID: References: <52c42c3e1003260006o71310c3en51c92d91f5cc4e0a@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280951137 24406 80.91.229.12 (4 Aug 2010 19:45:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Aug 2010 19:45:37 +0000 (UTC) Cc: bug-guile@gnu.org To: Michael Lucy Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Aug 04 21:45:36 2010 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OgjuB-0006dd-JI for guile-bugs@m.gmane.org; Wed, 04 Aug 2010 21:45:35 +0200 Original-Received: from localhost ([127.0.0.1]:53658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgjuB-0002So-0f for guile-bugs@m.gmane.org; Wed, 04 Aug 2010 15:45:35 -0400 Original-Received: from [140.186.70.92] (port=40622 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ogju1-0002Pu-Sj for bug-guile@gnu.org; Wed, 04 Aug 2010 15:45:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ogju0-0007r5-AH for bug-guile@gnu.org; Wed, 04 Aug 2010 15:45:25 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:52905 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ogju0-0007qx-6y for bug-guile@gnu.org; Wed, 04 Aug 2010 15:45:24 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id AF7F5CADBA; Wed, 4 Aug 2010 15:45:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=XjLlDPHa7O2n7pkQTXYZ1viPx/o=; b=RQhdqT oUEdmS7B8tQzAD7B13px76wFHxRnraEi0Ksh8DoNCRZlakJIKZtyPz3zn8unuTo0 eLqT39UVgbnwR9qVeNj9hnRRB02hQcr0eb/52GNS4VPs8C9p9Hwl3iKZEeTuehHE W0Tt1kgR5Nj43lU/faEQVrI38P23erVCS683w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=YcoxmmrCGASxDrzImIRopoOVSILRyAsy DnVj2Vu59FHB8TA6nxA2Q7bVGDZ3CakAIRwwekw1UgtQUiVM0zhX6jGU/J7aOjW9 WIYct9ZqZ1WkmAovN58xFo1FDm/nleUq223xDBa9PLBug+KRK84GuyuxMrOjLGxm S2avB+AOoRk= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 9ADEECADB9; Wed, 4 Aug 2010 15:45:21 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [83.44.189.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id C62F0CADB8; Wed, 4 Aug 2010 15:45:19 -0400 (EDT) In-Reply-To: <52c42c3e1003260006o71310c3en51c92d91f5cc4e0a@mail.gmail.com> (Michael Lucy's message of "Fri, 26 Mar 2010 01:06:06 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: D14862F2-A000-11DF-8E8D-9056EE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4725 Archived-At: Hi Michael, Late reply, but better than never... On Fri 26 Mar 2010 08:06, Michael Lucy writes: > I think there's a bug in vector-move-right!. I'm using guile 1.9.9 as > built from the git repository earlier today. > > This is the behavior I see: > " > scheme@(guile-user)> (define *v1* #(1 2 3 4 5 6 7 8 9)) > scheme@(guile-user)> (define *v2* #(10 20 30 40 50 60 70 80 90)) > scheme@(guile-user)> (vector-move-right! *v1* 0 2 *v2* 5) > scheme@(guile-user)> *v2* > #(10 20 30 1 2 60 70 80 90) > " > > It seems to interpret the argument start2 as an ending index. I > thought for a second that this might be intended behavior, but it says > in the documentation that start2 is supposed to be an inclusive index, > which it isn't. > > This is the behavior I expect: > " > scheme@(guile-user)> (define *v1* #(1 2 3 4 5 6 7 8 9)) > scheme@(guile-user)> (define *v2* #(10 20 30 40 50 60 70 80 90)) > scheme@(guile-user)> (vector-move-right! *v1* 0 2 *v2* 5) > scheme@(guile-user)> *v2* > #(10 20 30 40 50 1 2 80 90) > " Well, there are more bugs: scheme@(guile-user)> (define *v1* #(1 2 3 4 5 6 7 8 9)) scheme@(guile-user)> (define *v2* #(10 20 30 40 50 60 70 80 90)) scheme@(guile-user)> (vector-move-left! *v1* 0 2 *v2* 9) scheme@(guile-user)> *v2* $1 = #(10 20 30 40 50 60 70 80 90) Hmm, what memory did we just overwrite? :) I have fixed all of the bugs that I can see here, but there might be more, so please do give this a poke. Andy -- http://wingolog.org/