From: matz@... (Yukihiro Matsumoto) Date: 2002-05-20T14:11:16+09:00 Subject: Re: Exceptions and <=> Hi, In message "Re: Exceptions and <=>" on 02/05/18, Paul Brannan writes: |It just occurred to me that an alternative would be to use nil: | | module Comparable | def <(other) | result = self <=> other | return result.nil? ? false : result | end | end | |Thus <=> could have five possible results: | -1 less than | 0 equal | 1 greater than | nil none of the above | exception an exceptional condition (error) occurred Hmm, I like this one. Let me consider. matz.