From: Shashank Date Date: 2006-02-23T12:57:41+09:00 Subject: Re: [ANN] lazy.rb 0.9.5 -- transparent futures! --0-542011561-1140667046=:94807 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, Daniel Nugent wrote: table_name = "CUSTOMERS" x = promise {table_name.dup} table_name = "MONKEYS" puts x =>"CUSTOMERS" Would avoid the problem. Though it's good to point out that you likely want to avoid changing the state of any variable that's captured by a promise closure (unless of course you plan on exploiting just that). All this being said, is there any merit in the idea of passing block parameters? I was toying with it briefly and decided to give it a shot on a whim. Will try and come up with a more convincing answer. Thanks for all your inputs. -- shanko --------------------------------- Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. --0-542011561-1140667046=:94807--