Front page | perl.perl6.language |
Postings from February 2005
Re: Valid hash keys?
Thread Previous
|
Thread Next
From:
Rod Adams
Date:
February 27, 2005 16:44
Subject:
Re: Valid hash keys?
Message ID:
422268E9.2080707@rodadams.net
Luke Palmer wrote:
>The object model that I'm working on actually identifies 2 and "2" as
>the same object, indistinguishable in every respect.
>
Okay, that's fine, since C< 2 eq "2" > and C< 2 == "2" >. But what about
2.0 and "2.0"?
In Perl5, C< 2.0 == "2.0" >, but C< 2.0 ne "2.0" >.
-- Rod Adams
Thread Previous
|
Thread Next