From: Austin Ziegler Date: 2004-08-26T04:23:55+09:00 Subject: Re: Ruby interpreter as client-server On Thu, 26 Aug 2004 01:36:08 +0900, MiG wrote: > > I've tried just this :-) > > But there is still problem that $stdout is global variable and > pust/print/etc in load method use just these global variables. > > I don't know how to populate my wrapper object to load method and > separate buffers between threads at once. What I'm saying is don't actually use puts/print, etc. Use: @outp << foo # equivalent to "print foo" You can do: def process(argv, inp = $stdin, outp = $stdout, errp = $stderr) @inp = inp ... end process(ARGV) -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca