From: matz@... (Yukihiro Matsumoto) Date: 2002-02-19T14:42:25+09:00 Subject: Re: the proc argument to Marshal.load Hi, In message "the proc argument to Marshal.load" on 02/02/19, Joel VanderWerf writes: |Marshal.load((Marshal.dump [0.5,1,[2],"three"]), proc {|x| p x}) | |==> | |[] |0.5 |[] |"three" |[0.5, 1, [2], "three"] ## this is return value, not output of 'p x' | | |I guess 1 and 2 never showed up because they're immediate values, |whereas 0.5 is boxed, though it has immutable value semantics. Is this a |bug? | |Why didn't [2] show up? And why didn't the whole array show up? Well, I |guess they both did, but before values were restored to them. That |accounts for the two []. The latter [] is the [2] to be. I guess it's better to change the timing to call proc. matz.