On Tue, Dec 6, 2011 at 5:05 PM, Henrik Sperre Johansen < henrik.s.johansen@veloxit.no> wrote:
On 06.12.2011 16:18, Mariano Martinez Peck wrote:
Hi guys. When printing compiled methods we get something like:
TestCase >> #assert: -> (TestCase>>#assert: "a CompiledMethod(585629696)")
Where the number is the #identityHash. I have never really needed that, and even more, I always want to print:
TestCase >> #assert: -> 'TestCase>>#assert:'
Are you sure? Would have helped you at the start of http://forum.world.st/Problem-**with-CompiledMethodTrailer-** td3508018.html<http://forum.world.st/Problem-with-CompiledMethodTrailer-td3508018.html> :)
Not sure if the identityHash of the print string helped that much there.
So...my question is, is there any reason why it makes so much sense to print the identityHash of a CompiledMethod ?
Not really sure. It's just seems to have been that way for a long time.
Yes but mayte it was so so a long time where identityHash as memory address, in which case it would make more sense?
Cheers, Henry
-- Mariano http://marianopeck.wordpress.com