From: Joel VanderWerf Date: 2004-03-12T07:21:13+09:00 Subject: Re: saving array Gavin Kistner wrote: > On Mar 11, 2004, at 3:04 PM, Phidippus wrote: > >> 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. > > > Er, how about you please provide US with what you are doing, what errors > your getting. > > That's a far easier way to help you than having people guess what might > be wrong with your method. The problem is that ary.to_yaml dumps empty data: --- !ruby/object:NArray {} IIRC there is a similar problem with rbtree. -- Joel VanderWerf California PATH, UC Berkeley mailto:vjoel@path.berkeley.edu Ph. (510) 231-9446 http://www.path.berkeley.edu FAX (510) 231-9565