[Openmcl-devel] stream-read-sequence

Gary Byers gb at clozure.com
Mon Jun 27 03:27:08 PDT 2005

On Fri, 24 Jun 2005, Geoff Cant wrote:

> I'm also interested in the stream-read-sequence stuff for porting
> cl-ssl (from portableaserve) to openmcl. Is it a case of defining
> stream-read-sequence as a generic function then have the default
> method call read-sequence with the arguments reversed?
> --Geoff

[I'm on the road and don't have a very good net connection at the moment,
so there may be even more typos here than usual ... ]

What Geoff suggests would work fine.  If a stream class offers special
methods for reading or writing vectors (or, less likely, lists),
READ-SEQUENCE and WRITE-SEQUENCE will call those methods.

The original Gray streams proposal was written before READ-SEQUENCE
and WRITE-SEQUENCE were added to CL, and some implementations add (and
an attempt to address this omission; it seems preferable to specialize
things at a somewhat lower level, to handle :START and :END args and
non-simple vector cases in the caller and let the stream-specific
methods concentrate on BLTing things around.

> ocorrain at yahoo.com (Tiarnán Ó Corráin) writes:
>> Hi,
>> I'm trying to get cxml working, as a component of bknr-sputnik, but it
>> chokes at stream-read-sequence. This function seems to be missing from
>> the :gray package, although a previous version 0.13.3 hints that it
>> was once there.
>> Is this function available in openmcl 0.14.3?
>> regards
>> --
>> Tiarnán
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel

More information about the Openmcl-devel mailing list