Hi Eduardo, I've noticed in a lot of the examples you post that you make extensive use of locals. I'm curious if this is a common idiom you use (as opposed to being common to the code you post), and if so what you see as the benefits vs. working off the stack without named variables.
I really like how Factor allows either usage, even though it creates a tension between the two styles. Thanks, Glenn V. Glenn Tarcea gtar...@umich.edu -----Original Message----- From: Eduardo Cavazos [mailto:wayo.cava...@gmail.com] Sent: Thursday, January 22, 2009 9:40 AM To: factor-talk@lists.sourceforge.net Subject: [Factor-talk] io.launcher: stdout and stderr as streams Slava, In git-tool, I need to run a process (various git commands) and have access to stdout and stderr as streams. As far as I know, there is no way to do this via the 'io.launcher' vocabulary. I'm using the following word to achieve this: ---------------------------------------------------------------------- :: <process-stdout-stderr-reader> ( DESC -- process stream stream ) [ [let | STDOUT-PIPE [ (pipe) |dispose ] STDERR-PIPE [ (pipe) |dispose ] | [let | PROCESS [ DESC >process ] | PROCESS [ STDOUT-PIPE out>> or ] change-stdout [ STDERR-PIPE out>> or ] change-stderr run-detached STDOUT-PIPE out>> dispose STDERR-PIPE out>> dispose STDOUT-PIPE in>> <input-port> utf8 <decoder> STDERR-PIPE in>> <input-port> utf8 <decoder> ] ] ] with-destructors ; ---------------------------------------------------------------------- Do you plan on updating 'io.launcher' to support this sort of thing? Ed ---------------------------------------------------------------------------- -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk