From: Dossy Date: 2002-05-18T05:57:37+09:00 Subject: Re: Exceptions and <=> On 2002.05.18, Paul Brannan wrote: > However: > > class Foo > include Comparable > def <=>(other) > raise "uh oh" > end > end > p Foo.new == 42 > > prints: > > false Sure. Try: p Foo.new <=> 42 What happens? -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)