>>>>> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes:
DS> At 08:13 AM 8/7/00 +0100, Hildo Biersma wrote:
>> I want the expressions '1 + 3.14' and '3.14 + 1' to work the same, and
>> they do. Using the current perl overloading mechanism, '1 +
>> Math::BigInt' and 'Math::BigInt + 1' also mean the same (though the hack
>> used for this, parameter reversing, is a bit gross). Right now,
>> 'Math::BigInt + Foo' and 'Foo + Math::BigInt' only mean the same if
>> either only one class implements operator overloading, or both classes
>> are aware of one another. I'd like this to be a bit safer and
>> predictable in perl6.
DS> To do it generally opens a huge can of worms. Doing it in a limited number
DS> of cases (int->BigInt, float->BigRat, char->UTF8) is more reasonable, and
DS> we can certainly manage that.
Why limited? Doesn't this problem effect all pairwise combinations of
operators?
$complex / $integer
$complex + $string.
etc.
<chaim>
--
Chaim Frenkel Nonlinear Knowledge, Inc.
[EMAIL PROTECTED] +1-718-236-0183