Re: Bits from a stream



@Peter:
Ah, I see.

Anyway, after opening a file, it would be best to first execute
(read-bit-reset) to reset the reader's closure.

In fact, I would probably have also written some sort of
(open-input-bit-stream) that does the open with (unsigned-byte 8) and
then does a (read-bit-reset), which I could then encapsulate out by
creating a new closure instead of resetting it - pretty much what
Zach's library does using objects.

@Zach:
Is there some sort of license to the code you posted a pointer to? I
assume it's sort of public domain?

.



Relevant Pages

  • Re: Dan Simmons on Larry Niven?
    ... If you want a sort of re-tread of Chaucer, ... "Hyperion" and found it less than wonderful. ... As an INTJ, I do like closure. ...
    (rec.arts.sf.written)
  • Re: Closures
    ... > So I'm trying to get my head around exactly what a "closure" is. ... Not `a callback is a primitive, ... There is a built in sort method which has default ... specific callback for each sort key because we don't know what the user ...
    (comp.lang.scheme)
  • Re: Final episode of Life On Mars (nbc)
    ... It was nice to get some sort of closure to series, ... think the writers handled the finale better than BSG did. ... arcing themes. ...
    (rec.music.artists.springsteen)
  • Closures
    ... So I'm trying to get my head around exactly what a "closure" is. ... Recently I read a closure was a "generic representation of a callback" ... There is a built in sort method which has default ...
    (comp.lang.scheme)