[REBOL] Re: [BUG?] read-io & write-io or Wait or is TCL better?
From: dockimbel:free at: 24-Dec-2003 22:30
Selon Rebolinth <[Rebolinth--nodep--dds--nl]>:
[...]
> Although a "clear buffer" sounds logical it should not be necesary,
> the :size in "size: read-io..." should always return the length
> of read-io bytes so even if the buffer is filled with old bytes
> the :size is leading here... (I expect the buffer-end is an <EOF>)
>
> As 'clear does a clear from the index upto the tail,
> it doesnt sound logical to use. But perhpas the speed of
> the function call could intefer with the :size enventualy..
Read-io *appends* data in the buffer, it doesn't clear the old data. That's why
you have to do a [clear buffer] in your read/write loop.
-DocKimbel