From: dblack@... Date: 2003-05-31T06:48:07+09:00 Subject: Re: to_s and concatenation Hi -- On Sat, 31 May 2003, Brian Candler wrote: > The same distinction doesn't seem to hold for to_int and to_i though - you > get a different exception. I don't understand the mechanics of coercion of > numeric types. Just one addendum: it does hold for to_a/to_ary -- that is, you can define to_ary on an object and that's how the object will represent itself in cases where an array is expected, while to_a will return at least something for every object. David -- David Alan Black home: dblack@superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav