From: "Iñaki Baz Castillo" Date: 2008-06-30T02:00:33+09:00 Subject: Re: Why can't I return "Threads.list" Array in DRb? El Domingo, 29 de Junio de 2008, Iñaki Baz Castillo escribió: > El Domingo, 29 de Junio de 2008, Iñaki Baz Castillo escribió: > > - In the DRb server object I just do: > > > > def current_threads > > Thread.list > > end > > > > - And the DRb client calls: > > > > drb_client.current_threads > > > > but instead of an Array object I get a DRb::DRbObject, and in each call > > to this method I get a different "id": > > > > irb> drb_client.current_threads > > => # > @uri="druby://0.0.0.0:10001"> > > irb> drb_client.current_threads > > => # > @uri="druby://0.0.0.0:10001"> > > Opsss, and more extrange: > Note the following: > > irb> drb_client.current_threads > => # @uri="druby://0.0.0.0:10001"> > > irb> puts drb_client.current_threads > # > # > # > # > # > => nil > > How is it possible? why "puts" gets this? > > > irb> puts drb_client.current_threads.class > DRb::DRbObject > => nil Well, I am understanding that if DRb server return an object unknown for the DRb client, the the only way the client hast to use/show it is as raw value, is it? -- Iñaki Baz Castillo