Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [BUG?] read-io & write-io or Wait or is TCL better?

From: g:santilli:tiscalinet:it at: 7-Aug-2003 12:38

Hi Norman, On Thursday, August 7, 2003, 11:00:45 AM, you wrote: R> Although a "clear buffer" sounds logical it should not be necesary, R> the :size in "size: read-io..." should always return the length R> of read-io bytes so even if the buffer is filled with old bytes R> the :size is leading here... (I expect the buffer-end is an <EOF>) As I said to Petr, READ-IO does *NOT* overwrite your buffer. If you have data in it, it will append to it. So you either have to skip the initial data when writing (but then you could end up filling your buffer!) or clear it each time. (Notice that CLEAR is O(1) so this does not add any performance problems.) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/