From: dblack@... Date: 2002-11-26T00:28:39+09:00 Subject: Re: [FAQ] Defining <=> Hi -- On Tue, 26 Nov 2002, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: [FAQ] Defining <=>" > on 02/11/25, ts writes: > > | Well, you can remove it from the FAQ but you'll never stop ruby to do this > | > |pigeon% ruby -e 'File.open([])' > |-e:1:in `open': wrong argument type Array (expected String) (TypeError) > | from -e:1 > > But it based on whether object has "to_str" or not. I know Ruby still > does type testing. But it is evloving. This made me take a second look at my to_str example.... In 1.6.7 File#open doesn't seem to look for to_str, but it does in 1.7. So I semi-retract my previous observation :-) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav