develooper Front page | perl.perl6.language | Postings from February 2004

Re: The Sort Problem: a definitive ruling

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
February 20, 2004 14:13
Subject:
Re: The Sort Problem: a definitive ruling
Message ID:
a0601020dbc5c3699f7ed@[10.0.1.2]
At 2:49 PM -0700 2/20/04, Luke Palmer wrote:
>After this statement:
>
>     $x = '345';
>
>C<$x> is a number.

No, it isn't. It's a string. Or, rather, it's a PerlScalar.

>I should hope it would be treated as one during
>multimethod dispatch.

I should certainly hope *not*. If so, it's a bug. We ought to go add 
some tests to the test suite once we expose this bit of the engine.
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About