On Apr 22, 2008, at 3:17 PM, Eduardo Cavazos wrote:

> Slava Pestov wrote:
>
>> Because its not general enough. Only works for input from a file and
>> output from a file.
>
> I agree. When I was thinking about with-reader-writer, I also  
> thought about
> having with-input-output.
>
>       : with-input-output ( stream stream quot -- ) ... ;

So then you'd have to do

"in.txt" utf8 <file-reader> [
     "out.txt" utf8 <file-writer> [
         [
             ...
         ] with-input-output
     ] with-disposal
] with-disposal

Slava




-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to