From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: dfsr@riseup.net (Diogo F. S. Ramos) Newsgroups: gmane.lisp.guile.devel Subject: `bytevector-length' doesn't accept a shared array from a bytevector Date: Tue, 21 Feb 2017 10:21:07 -0300 Message-ID: <87poib65oc.fsf@riseup.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487684920 3402 195.159.176.226 (21 Feb 2017 13:48:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2017 13:48:40 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Feb 21 14:48:36 2017 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgAnu-0008Th-DI for guile-devel@m.gmane.org; Tue, 21 Feb 2017 14:48:30 +0100 Original-Received: from localhost ([::1]:45215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgAny-0001Up-L5 for guile-devel@m.gmane.org; Tue, 21 Feb 2017 08:48:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgANX-0000ZL-Eu for guile-devel@gnu.org; Tue, 21 Feb 2017 08:21:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgANT-00042n-IJ for guile-devel@gnu.org; Tue, 21 Feb 2017 08:21:15 -0500 Original-Received: from mx1.riseup.net ([198.252.153.129]:37482) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cgANT-00042R-BB for guile-devel@gnu.org; Tue, 21 Feb 2017 08:21:11 -0500 Original-Received: from cotinga.riseup.net (unknown [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 36F7D1A0645 for ; Tue, 21 Feb 2017 13:21:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1487683270; bh=FHyJly+gw4pmO6fULQAZlR8AAv/j4ud26aYgQrwydo0=; h=From:To:Subject:Date:From; b=S+F9KJDj+FfvWO0JRiJ5zoTf6Ti0L0qV1LnlYCE0m3MLjMw7Wr8hoFtD1TYEzoy3T MvrJ7jpaXU4FCFXjW01v9EAqaMdH0KrIdpZcCnX8rJN/GR+y+7DUKZWxdVeAre0aid aZOcBOHHC2YB3f+jSI0MhA+NUuDKgQN8cNARr8R0= Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dfsr) with ESMTPSA id 74537404B1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 198.252.153.129 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18931 Archived-At: I want to take the length of a shared array, but `bytevector-length' throws an error claiming the shared array isn't a bytevector, even though it prints the error argument as one. --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,use (rnrs bytevectors) scheme@(guile-user)> (bytevector-length (make-shared-array (make-bytevector 42) list 7)) ERROR: In procedure bytevector-length: ERROR: In procedure scm_c_bytevector_length: Wrong type argument in position 1 (expecting bytevector): #vu8(0 0 0 0 0 0 0) Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> --8<---------------cut here---------------end--------------->8--- I am using Guile 2.0.11, Debian Stable package 2.0.11+1-9.