discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

difference between -[NSProxy hash] and -[NSObject hash]


From: andre levy
Subject: difference between -[NSProxy hash] and -[NSObject hash]
Date: Mon, 20 Sep 2004 11:30:57 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910

Hi all,

I found that:

-[NSProxy hash] returns (unsigned)self

and:

-[NSObject hash] returns (unsigned)self >> 3

Is there a reason why the two are not implemented the same way?

I mean, there seems to be a rationale behind the NSObject implementation, shouldn't it apply to NSPRoxy as well?
(and I do figure that other classes should be concerned too?)

--andre





reply via email to

[Prev in Thread] Current Thread [Next in Thread]