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

port bug?

 [1/2] 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
<<quoted lines omitted: 3>>
>> 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

 [2/2] from: rotenca:telvia:it at: 9-Sep-2002 20:27


Hi all, I've found a work-around for this bug: write f "123456789" p: open/direct f copy/part p 1;== "1" insert p "c" read f ; == "123456789c" read-io and write-io. --- Ciao Romano

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted