From: Jeff Wood Date: 2005-10-15T01:01:47+09:00 Subject: Re: Challenging Project ... Need a deep guru to provide enlightenment. ------=_Part_18049_9077770.1129305704668 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yeah, but I have to tell the server side WHICH object to call the methods o= n ... that's what's gumming me up. I'm glad I've peaked your tastebuds ... It's very close ... I'll either start it as it's own project or stuff it into nano or mega. j. On 10/14/05, Ara.T.Howard wrote: > > 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 =3D 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 > -- > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > | 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 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > > -- "http://ruby-lang.org -- do you ruby?" Jeff Wood ------=_Part_18049_9077770.1129305704668--