On Mon, 2004-05-17 at 13:35, Pedro Larroy wrote:

> Would it be a good idea to make ==, and other numeric comparators polymorphic 
> so they can be used also for string comparisons?

How does the compiler know which is which?

Is "10" a string?  Is it a number?  Is "10base-T" a string?  Is it a
number?  Is an object with overloaded stringification and numification a
number?  Is it a string?

I don't know a good heuristic for solving these problems.  If you have
one, it's worth considering though.

-- c

Reply via email to