unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Taylan Kammer <taylan.kammer@gmail.com>
To: guile-user@gnu.org
Subject: Re: bytevector seems to be missing in Guile
Date: Sat, 7 Jan 2023 22:56:48 +0100	[thread overview]
Message-ID: <ee281543-2710-13e3-5cf7-fb062fdb4df8@gmail.com> (raw)
In-Reply-To: <Y7ngIROvaK3R2tF/@ws>

On 07.01.2023 22:12, Wolf wrote:
> On 2023-01-07 12:07:31 -0800, Matt Wette wrote:
>> On 1/7/23 8:34 AM, Sascha Ziemann wrote:
>>> Is the procedure "bytevector" missing in Guile?
>>>
>>> I tried this:
>>> guile --r7rs -c '(write (bytevector 1 2 3))'
>>>
>>> R7RS defines it on page 49.
>>>
>>
>> maybe you need (import (rnrs bytevectors))
> 
> I'm far from expert, but it looks to me like (bytevector) in particular is not
> provided by guile.
> 
> I think the way in guile is
> 
>     #vu8(1 2 3)
> 
> Or you could make it from list of integers:
> 
>     (use-modules (rnrs bytevectors))
>     (u8-list->bytevector '(1 2 3))
> 
> W.
> 

IIRC you should be able to import (scheme bytevectors), which is R7RS.

The (rnrs bytevectors) module is R6RS.

-- 
Taylan




  reply	other threads:[~2023-01-07 21:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-07 16:34 bytevector seems to be missing in Guile Sascha Ziemann
2023-01-07 20:07 ` Matt Wette
2023-01-07 21:12   ` Wolf
2023-01-07 21:56     ` Taylan Kammer [this message]
2023-01-08  0:20       ` Robby Zambito
2023-01-08 12:19         ` Sascha Ziemann
2023-01-08 20:35           ` Robby Zambito

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=ee281543-2710-13e3-5cf7-fb062fdb4df8@gmail.com \
    --to=taylan.kammer@gmail.com \
    --cc=guile-user@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).