On Sat, 8 Apr 2000, Yukihiro Matsumoto wrote: > Hi, > > In message "[ruby-talk:02375] Marshal: Want string out, but want depth specified?" > on 00/04/07, Hugh Sasse Staff Elec Eng <hgs / dmu.ac.uk> writes: > > |@encoded = [Marshal.dump(@decoded, , depth)].pack("m") > | > |gives a syntax error, > > Because you can't omit the second argument. I tried this because I can omit the second and third arguments together. > > |@encoded = [Marshal.dump(@decoded, nil, depth)].pack("m") > | > |doesn't work, the second param needs to be type IO > > Yes. > > |@encoded = [Marshal.dump(@decoded, depth)].pack("m") > | > |doesn't work, the second param needs to be type IO > > Hmm, I designed this to work. And works fine on my box. The only > limitation I can think of is depth must be a Fixnum. I think I tried it with a value of 10. I am using 1.4.3. Can I get better diagnositcs out somehow, so you can see why this doesn't work on my system, please? > > matz. > Hugh hgs / dmu.ac.uk