[r6rs-discuss] vectors of unsigned octets
From: Michael Sperber
> r6rsguy at free-comp-shop.com writes:
>
> > Vectors of unsigned octets are written #:vu8(<u8>*), and
> > are manipulated by the procedures:
> > (vu8? obj)
> > (make-vu8 k fill)
> > (vu8-length vu8)
> > (vu8=? vu8-1 vu8-2)
> > (vu8-u8-ref vu8 k)
> > (vu8-s8-ref vu8 k)
> > (vu8-uint-ref vu8 k size endianness)
> > (vu8-sint-ref vu8 k size endianness)
> > ... etc ...
>
> But bytevectors *aren't* vectors of unsigned octets.
> However, the external representation starting with #vu8
> uses unsigned octets. Those are two different things.
You have lost me. If you are making the pedantic point that
external representations differ from internal objects, then
I don't see the relevance of that to a discussion of naming.
On the other hand, R5.95 says (page 16):
<bytevector> -> #vu8( <u8>* )
so if you are saying that "bytevector" and "vu8" are not
near synonyms, then the name of the non-terminal
is spectacularly ill-chosen.
-- Keith
Received on Tue Jun 26 2007 - 01:06:30 UTC
This archive was generated by hypermail 2.3.0
: Wed Oct 23 2024 - 09:15:01 UTC