Challenge (was: Re: [Squeak 0003836]: nil ~= 1and: [1 isNil] is parsed+compiled without complaint)

David Corking lists at dcorking.com
Thu Jul 13 11:58:48 UTC 2006


On 7/13/06, Bert Freudenberg <bert at impara.de> wrote:
> Heh. My favourite strange expression is this:
>
> # "hi there" :== '_'
>
> 1) Who can guess what the result is WITHOUT trying it?
> 2) Who can explain what's happening?
> 3) Do we need to fix it?
>

Nothing happens here except 'Nothing more expected'.  What is supposed
to happen.

The character set for Squeak seems to be subtly broken for some uses
of the 'left arrow'.  A few days ago, I tried to file in a .st file
that used the left arrow character for binding.  But the File In
failed with this error "does not understand"- the first few lines of
the file compiled, and the rest of the compile was aborted.

Turns out my Linux system, and the Squeak running on it, thought that
the left arrow was an underscore character (0x5f).  So I went into my
favourite text editor, used search and replace to replace all
underscores with := Then it worked.



More information about the Squeak-dev mailing list