[squeak-dev] Interesting Decompiler bug
mokurai at earthtreasury.org
mokurai at earthtreasury.org
Fri Jun 21 06:37:16 UTC 2013
I am in the process of filing dozens of Squeak bugs that I found while
researching the Etoys Reference Manual, and making notes on them in the
Squeak interface section of the manual.
http://booki.flossmanuals.net/etoys-reference-manual-vol-ii/_edit/
On Wed, June 19, 2013 7:26 pm, Nicolas Cellier wrote:
> See
> http://stackoverflow.com/questions/17129583/smalltalk-collection-is-empty-error-when-saving/17202938#17202938
>
> This bug was found by a newbie on pharo 1.1, but it's still there in 4.5
> trunk image
>
> Try to decompile this (no matter in which class)
>
> < aNumberWithUnits
> (self compareUnits: aNumberWithUnits)
> ifTrue: [self value: ((aNumberWithUnits value) < (self value)
> ifTrue: [^true] ifFalse: [^false]).]
> ifFalse: [^Error new signal: 'Incompatible unit types.'].
>
> Thanks to the newbie!
> I would just have hated that!
> Learning from one's own error is great, but from a dysfunctional system
> not
> so :(
>
>
--
Edward Mokurai
(默雷/निशब्दगर्ज/نشبدگرج)
Cherlin
Silent Thunder is my name, and Children are my nation.
The Cosmos is my dwelling place, the Truth my destination.
http://wiki.sugarlabs.org/go/Replacing_Textbooks
More information about the Squeak-dev
mailing list
|