On 24 Sep 2009, at 4:16 pm, John Cowan wrote: > Alaric Snell-Pym scripsit: > >> In the core, however, it could be explained that an operation that >> reads a bunch of bytes from a binary port returns a vector of bytes - >> but that vector must not be modified, which would then free up >> implementations to just return general vectors that happen to be full >> of small exact integers, or to actually return a specialised srfi-4- >> esque 8uvector; > > I don't see that you need immutability for that, as long as the first > kind of implementation makes blob-u8-ref a synonym for vector-ref (and > ditto for set).
Oh, I specified immutability since the effects of vector-set!-ing something into such a returned vector might vary between implementations; ones that return u8vectors wouldn't let you place symbols into the result. ABS -- Alaric Snell-Pym Work: http://www.snell-systems.co.uk/ Play: http://www.snell-pym.org.uk/alaric/ Blog: http://www.snell-pym.org.uk/archives/author/alaric/ _______________________________________________ r6rs-discuss mailing list [email protected] http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss
