[squeak-dev] debugging bug

Bert Freudenberg bert at freudenbergs.de
Mon Aug 20 06:26:02 UTC 2018


On Sat, 18 Aug 2018 at 19:08, Chris Muller <ma.chris.m at gmail.com> wrote:

> Of course!  Right after just posting those test results I encountered
> a bug with debugging case statements.
>
> | str char | str := '1234' readStream.
> char := str next.
> char ifNil: [ Error signal ].
> char caseOf: {
>     [$4] -> ['four'].
>     [$3] -> ['three' asUppercase].
>     [$2] -> ['two'].
>     [$1] -> ['one' asUppercase].
> } otherwise: [ 'No' ]
>
> The issue is that it highlights "signal" of "Error signal".
>
> It's also interesting, but somewhat understandable, that it doesn't
> highlight the blocks with no message sends in them.
>

Fixed in
Compiler-bf.390
, I think.

- Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180819/cc749be4/attachment.html>


More information about the Squeak-dev mailing list