From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ryan Moore" Newsgroups: gmane.lisp.guile.bugs Subject: make-shared-array and bitvectors Date: Wed, 01 Nov 2006 16:45:31 -0500 Message-ID: <4548CF2B020000FC0000425F@WC-MESSAGE.westminster.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162427483 22652 80.91.229.2 (2 Nov 2006 00:31:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Nov 2006 00:31:23 +0000 (UTC) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Nov 02 01:31:21 2006 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GfQU7-0008L2-T9 for guile-bugs@m.gmane.org; Thu, 02 Nov 2006 01:31:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfQU7-0004kK-A3 for guile-bugs@m.gmane.org; Wed, 01 Nov 2006 19:31:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GfNuF-0001lX-Pz for bug-guile@gnu.org; Wed, 01 Nov 2006 16:45:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GfNuE-0001jn-3L for bug-guile@gnu.org; Wed, 01 Nov 2006 16:45:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfNuE-0001jk-1G for bug-guile@gnu.org; Wed, 01 Nov 2006 16:45:54 -0500 Original-Received: from [24.75.180.13] (helo=WC-MESSAGE.westminster.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GfNuD-0003Qp-Ic for bug-guile@gnu.org; Wed, 01 Nov 2006 16:45:53 -0500 Original-Received: from WC_MAIL-MTA by WC-MESSAGE.westminster.edu with Novell_GroupWise; Wed, 01 Nov 2006 16:45:52 -0500 X-Mailer: Novell GroupWise Internet Agent 7.0.1 Original-To: Content-Disposition: inline X-Mailman-Approved-At: Wed, 01 Nov 2006 19:31:04 -0500 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:3379 Archived-At: Making a shared array out of a bit vector does not result in a bit vector being returned when the shared array does not have as many elements as the original: (define somebits (make-bitvector 8 #f)) (define subbits (make-shared-array somebits (lambda (dim) (list dim)) 4)) (define allsubbits (make-shared-array somebits (lambda (dim) (list dim)) 8)) (bitvector? somebits) => #t (bitvector? subbits) => #f (bitvector? allsubbits) => #t (display somebits) =>#*00000000 (display subbits) => #b(#f #f #f #f) (display allsubbits) => #*00000000 The 1.8 manual states: "Bit vectors are are also generalized vectors, See Generalized Vectors, and can thus be used with the array procedures, See Arrays" but as we can see, array procedures do not work as expected on bitvectors. If this is expected behavior, I feel it should be clarified. I would think that making a shared array out of a bitvector would result in a bitvector after all... Thanks, Ryan Moore _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile