Luke Palmer:
# > There's no need for special methods or (gods forbid) more operators.
# > Just:
# > 
# >      $obj1.id == $obj2.id
# > 
# > That's what the universal C<id> method is *for*.
# 
# I rather like that.  It's used for hashing by default (in 
# absence of a stringification or .hash (?) method), yes?

I'd assume so, but more by default rather than by design:

        class Object {
                method hash() {
                        return .str();
                }
                
                method str() {
                        return .id();
                }
                
                method id() {
                        return sprintf("%s(%#x)", .class,
Perl6::addressof($_));
                        #Or some such nonsense
                }
        }

--Brent Dax <[EMAIL PROTECTED]>
@roles=map {"Parrot $_"} qw(embedding regexen Configure)

"If you want to propagate an outrageously evil idea, your conclusion
must be brazenly clear, but your proof unintelligible."
    --Ayn Rand, explaining how today's philosophies came to be

Reply via email to