From: Logan Capaldo Date: 2006-05-25T12:59:33+09:00 Subject: Re: Marshaling NArray objects. On May 24, 2006, at 11:35 PM, Alex Polite wrote: > I'm trying to marshal narray objects by first converting them to > ordinary arrays but I can't seem to get it right. I understand that I > have to implement marshal_dump and marshal_load for NArray so I've > tried this: > > class NArray > def marshal_dump > self.to_a > end It's this part. > def marshal_load(array) > NArray.to_narray(array) > end > end > You need something like replace(NArray.to_narray(array)) Unfortunately, replace isn't a method for NArray. > And lots of other stuff. I won't bore you with the error messages, > suffice to say that I can't seem to get it right. > > alex > > -- > Alex Polite > http://flosspick.org - finding the right open source >