From: elbows@... (Nathan Weston) Date: 2003-10-02T01:41:33+09:00 Subject: Re: Making == symmetric? Austin Ziegler wrote in message news:<2003930195425.321793@PADD>... > On Wed, 1 Oct 2003 08:19:27 +0900, Nathan Weston wrote: [snip] > > For most binary operators, #coerce would seem to work (so long as the binary > operator exists in both classes), but not for ==. Perhaps that would be the > way to handle this? > > -austin #coerce only seems to work for Numerics (unless that has changed in 1.8?), and as you note, isn't called for ==. Actually, I think an extension of the coerce mechanism might be cleaner than my proposal, and could avoid the potential problem (noted in another post) of having to do 2 comparisons for each == operator. I will think about it and post another proposal based on #coerce later today. Nathan