[Ecls-list] gray-stream support

Juan Jose Garcia-Ripoll jjgarcia at users.sourceforge.net
Wed May 7 12:10:03 UTC 2008


On Wed, May 7, 2008 at 1:22 PM, Stelian Ionescu
 <sionescu at common-lisp.net> wrote:
 > On Tue, May 06, 2008 at 02:24:24PM +0200, Juan Jose Garcia-Ripoll wrote:
>  >But this is a problem with trival-gray-streams, isn't it? I mean it is
 >  >exporting its own symbol stream-read-sequence. But why would they do
 >  >that if the Gray package already provides it?
 >
 >  because not all implementations define stream-read-sequence, so T-G-S
 >  defines its own stream-read-sequence, which calls whatever the
 >  implementation supports

 There is a more subtle issue, which is that not all implementations
 define stream-read-sequence with the same kind of arguments. Lispworks
 seems to have (stream seq start end), while SBCL and ECL use (stream
 seq &optional (start 0) end), etc, etc. I did not think about it, but
 it is probably because the original "specification" did not contain
 stream-read/write-sequence.

 Juanjo

 --
 Facultad de Fisicas, Universidad Complutense,
 Ciudad Universitaria s/n Madrid 28040 (Spain)
 http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list