From: "NAKAMURA, Hiroshi" Date: 2004-03-12T11:19:04+09:00 Subject: Re: saving array Hi, > From: "Phidippus" > Newsgroups: comp.lang.ruby > Sent: Friday, March 12, 2004 7:04 AM > Thank you for the responses. But I forgot to mention one thing. My > arrays are multidimensional arrays of class NArray (using narray.rb). > I tried using YAML and marshalling, but they do not seem to work > (although I may be doint totally wrong). If you can, please give me > further advices. When the object not a sparse array, Marshal.load(Marshal.dump(narray.to_a)) require "soap/marshal"; SOAPMarshal.load(SOAPMarshal.dump(narray.to_a)) require "yaml"; YAML.load(narray.to_a.to_yaml) could be the answer. SOAP marshaller supports sparse array, but cannot handle a NArray object for now. Regards, // NaHi