[squeak-dev] Interesting Decompiler bug

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Wed Jun 19 23:26:14 UTC 2013


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 :(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130620/aabadf97/attachment.htm

More information about the Squeak-dev mailing list