From: matz@... (Yukihiro Matsumoto) Date: 2003-07-09T12:18:13+09:00 Subject: Re: Question about #coerce Hi, In message "Question about #coerce" on 03/07/09, Jim Cain writes: |What if x cannot be represented in the same class as y, but both could |be represented in a third class? Is it acceptable to return [y1, x1] |such that both objects have been rendered in a third class? Acceptable. It's only reason to return converted y1 *and* x1 from coerce, although no known class does that yet. |What if nothing can be done? Is it customary to raise an exception, or |return something like [y, nil]? Raise TypeError exception. matz.