From: "Ara.T.Howard" Date: 2005-10-15T00:52:33+09:00 Subject: Re: Challenging Project ... Need a deep guru to provide enlightenment. On Sat, 15 Oct 2005, Jeff Wood wrote: > On the way to work this morning, I even got it executing remote blocks ... > > so client code looks like: > > require 'roxy' > obj = Roxy.new( "otherhost", 4242 ) > obj.func( [ 1, 2, 3 ] ) { |a| puts a } > > ... I just have to figure out how I'm going to deal with syntax that is > multi-layered... > > blah.call.call2.call3 > > with how I have things now, blah.call would be run proxied, but .call2.call3 > would be run locally on the result of the first call. > > Anyways, that's about the only issue I have left to work out... I'll post > soon, better to post early than not at all ;) something recursive like obj.class.instance_methods.each do |m| module_eval <<-code def #{ m } *a, &b Roxy::new( send "#{ m }", *a, &b ) end code end so, every return value of Roxy must, itself, be a Roxy. this sounds very nice. -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | anything that contradicts experience and logic should be abandoned. | -- h.h. the 14th dalai lama ===============================================================================