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: Rebolinth:nodep:dds:nl at: 24-Dec-2003 22:30

-- Conversation/lunch: "How do you Eat your Rebol in the Morning?" Quoting ALL Hello All, 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.. But ill try it right away.. Ill get back with the result... (R)egards, Norman. -> I know I struggled really badly with exactly the same problem in the -> past. Although it may be reasonalble explainable that Rebol simply -> enlarges buffer, I think that we should think of submitting a bug -> request. And why? Because docs don't state that in the case of read-io -> we should clear the buffer. If it would lead only to buffer size -> increase, then OK, but it leads into completly broken communication with -> unexpected results ... -> -> What do other think? Should write-io clear the buffer after succesfull -> write automatically?