From: Eric Hodel Date: 2012-03-06T04:12:54+09:00 Subject: [ruby-core:43076] Re: feature request: marshallable proc's On Mar 5, 2012, at 8:51 AM, Roger Pack wrote: >> What should happen on the following code? >> >> f = open(something) >> a = background_process >> a.send { >> f.puts 'hello' >> } > > Hmm. Either an except on the puts call, an exception on the 'send' > method What about: f = open(something) a = background_process a.send { eval "f.puts 'hello'" } > or automagic Drb to call back to the element in the calling > program :) What about: f = open(something) a = data_store a.store { f.puts 'hello' } exit # new process a = data_store a.run_stored