On 12/12/02 4:01 PM, Larry Wall wrote:
> On Thu, Dec 12, 2002 at 12:40:52PM -0600, Garrett Goebel wrote:
> : So we'll _have_ to write $obj.*id when we mean $obj->UNIVERSAL::id;
> 
> If you wish to be precise, yes.  But $a.id eq $b.id should work for most any
> class that uses the the term "id" in the typical fashion.

I still feel like we're talking past each other here.  What I was saying is
that, regardless of any admonitions to the contrary, I think people will
still write this:

    $a.id == $b.id

and expect it to compare memory addresses.  That is not the "typical
fashion" for an object method named "id" to work, IMO.

The need to compare memory addresses is so infrequent that warrants a much
less common and/or longer method name than "id".

-John

Reply via email to