Hi Matthew, I have fixed two errors. One is that the sequence input streams
did not update the read pointer. The other one is that sequence streams with
strings now ignore the external format. However, while the following code
now works, I do not understand what you are trying to accomplish with it:
On Sun, Aug 28, 2011 at 2:22 AM, Matthew Mondor <mm_li...@pulsar-zone.net>wrote:
> (setf *string*
> (make-array 16
> :element-type 'character
> :fill-pointer 0))
> ;;; -> ""
>
> (with-open-stream
> (s (ext:make-sequence-output-stream *string*))
> (loop
> for b across *bytes*
> do
> (write-byte b s))
> *string*)
>
What is the use of writing bytes to a string? In many cases you may end up
with corrupt sequences, since the bytes produced by a external format do not
need to correspond to valid strings in the latin-1 and ucs4 formats which
are used internally by ECL.
Juanjo
--
Instituto de FĂsica Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list