UTF8 Squeak
nicolas cellier
ncellier at ifrance.com
Fri Jun 8 18:57:58 UTC 2007
Lukas Renggli <renggli <at> gmail.com> writes:
>
> Another issue I observed is that Characters in Squeak have an
> inconsistent behavior for #==. For characters with codePoint > 256 the
> identity is not preserved. This gives problems with code that uses #==
> to compare characters, legacy code and code ported from VisualWorks
> (SmaCC for example). In VisualWorks Characters are unique, just like
> Symbols are.
>
> Lukas
>
Just for the detail, Characters are unique like SmallIntegers are.
VW use last-two-bits-of-object-pointer trick so that Characters are immediate
values.
Nicolas
More information about the Squeak-dev
mailing list
|