At 4:21 PM -0400 9/3/02, [EMAIL PROTECTED] wrote:
>From: Trey Harris [EMAIL PROTECTED]
>> no strict 'refs';
>> my Date $date;
>> $date .= 'Sep 21, 1963';
>>
>> There is a method name there--'Date::Sep 21, 1963'.
>
>But that's my point. You wouldn't have to put the method name or the class
>because the compiler would understand what to call. It would see that
>$date is in the Date class, and 'Sep 21, 1963' is in the String class, so
>it would pretend the statement really reads
>
> $date = Date::new_from_String('Sep 21, 1963');
This will potentially get out of hand quickly. So, to get this out of
the way *now*...
If you're going to do this, you might as well go fully multimethod,
because someone'll want new_from_Integer, new_from_Float,
new_from_BigNum, new_from_Thread, new_from_Grue, and
new_from_Superposition.
Decide whether that's a good idea or not, since that's the way things
are going to go if you start.
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk