From: Daniel Nugent Date: 2005-10-29T07:52:27+09:00 Subject: Re: What would it take to change the behaviour of variable assignment? Bah, that example wasn't good either.... foo = DataFlow.new bar = Thread.new(foo, "Monitor Thread") {|params| print params[1] + ": " + params[0]} sleep(3) baz = Thread.new(foo, "Sleepy Thread") do |params| print params[1] + ": Going to sleep." sleep(3); params[0] = "Hello World, sorry I'm late" end --output-- [3 second pause] "Sleepy Thread: Going to sleep." [3 second pause] "Monitor Thread: Hello world, sorry I'm late" On 10/28/05, Daniel Nugent wrote: > Ara: Bah, I knew that someone was going to get confused about that. > This should be a little less ambiguous: > > foo = DataFlow.new > > bar = Thread.new(foo, "Monitor Thread") {|params| print params[1] + ": > " + params[0]} > baz = Thread.new(foo, "Sleepy Thread") do |params| > print params[1] + ": Going to sleep." > sleep(3); > params[0] = "Hello World, sorry I'm late" > end > > > Eric: As I understand it, that might be a little different, although > it's probablly worth looking into. Would you happen to know what a > good entry point to the documentation is? > > On 10/28/05, Eric Hodel wrote: > > On Oct 28, 2005, at 1:49 PM, Daniel Nugent wrote: > > > > > Hello, > > > > > > I've been considering the ways to add a particular language construct > > > (data flow variables) to Ruby. > > > > Maybe matju's gridflow does this already? > > > > http://gridflow.ca/latest/doc/ > > > > -- > > Eric Hodel - drbrain@segment7.net - http://segment7.net > > FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 > > > > > > > > > > > -- > -Dan Nugent > -- -Dan Nugent