[Factor-talk] read-until broken?

2009-03-27 Thread Sascha Matzke
Hi, somehow stream-read-until seems to be broken for byte-reader: B{ 120 0 0 0 0 0 0 } binary [ \0 read-until ] with-byte-reader results in B{ 120 } 0 on the stack.. If there were other values read from the stream before: B{ 0 120 0 0 0 0 0 0 } binary [ 1 read drop \0 read-until ]

Re: [Factor-talk] [XML bug?

2009-03-27 Thread Daniel Ehrenberg
Yeah, right now, you can't interpolate into xmlns slots because those values must be known at parsetime. This is basically an XML parsing error which I didn't write a good error message for. I might change this soon, to allow your kind of code (it would need reorganizing a lot of code), but I'm

Re: [Factor-talk] read-until broken?

2009-03-27 Thread Slava Pestov
Hi, Thanks for the bug report. I fixed the problem and added better unit tests for byte array streams. Slava On Fri, Mar 27, 2009 at 6:52 AM, Sascha Matzke sascha.mat...@didolo.org wrote: Hi, somehow stream-read-until seems to be broken for byte-reader: B{ 120 0 0 0 0 0 0 } binary [ \0