[squeak-dev] The Trunk: Kernel-ul.521.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Dec 8 02:43:10 UTC 2010


Levente Uzonyi uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-ul.521.mcz

==================== Summary ====================

Name: Kernel-ul.521
Author: ul
Time: 8 December 2010, 3:42:40.757 am
UUID: 3b6f8cce-0310-2d4d-91aa-deab6d13bde9
Ancestors: Kernel-ul.520

Implemented CompiledMethod >> #asString the same way Object does.

Why?
Because it raised an error, which it shouldn't.

Why doesn't it return a string with the bytes as characters like ByteArray does it?
Because it's not very useful to get an unreadable string with random looking characters. Also CompiledMethod is a subclass of ByteArray only to avoid code duplication, it could be a variableByteSubclass of Object.

Why doesn't it return the source code like Pharo does it?
Because that requires several changes in the way the sources and changes files are used (concurrency issues). And it's a lot slower.

The related mantis issue is http://bugs.squeak.org/view.php?id=7570 .

=============== Diff against Kernel-ul.520 ===============

Item was added:
+ ----- Method: CompiledMethod>>asString (in category 'converting') -----
+ asString
+ 
+ 	^self printString!




More information about the Squeak-dev mailing list