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

[REBOL] port bug?

From: rotenca:telvia:it at: 8-Sep-2002 0:33

Hi, all I have problems with direct ports, insert and copy/part.
>> write f "123456789" >> close p >> write f "123456789" >> p: open/direct f >> insert p "a" >> insert p "b" >> read f
== "ab3456789"
>> copy/part p 1
== "3" What i understand: In a direct port insert is like change. Read index is equal to the write index. Read-Write index is incremented after a write or a read. But now:
>> insert p "c" >> read f
== "ab3456789c" A write after a copy/part, writes at the end of buffer. This is the bug. Am i wrong? BTW, Read index now is different from the write index.
>> copy/part p 1
== "4" --- Ciao Romano