[Cuis-dev] Some small issues

Juan Vuletich juan at cuis.st
Thu Jan 12 06:35:23 PST 2023


Hi Folks,

On 1/11/2023 10:13 AM, Hilaire Fernandes via Cuis-dev wrote:
>> Finally the Cuis-Smalltalk book says that the following will return 
>> false, it does in squeak but in Cuis it returns true.
>>
>> 'hello' == 'hello' copy
>
> Good catch! Thanks. I think it is a bug related to the recent adoption 
> of Unicode as the default string representation in Cuis because :
>
> (String withAll: 'hello') == (String withAll: 'hello') copy
> => false
>
> Adoption of Unicode as the default string representation in Cuis is an 
> important change impacting many area and external package of Cuis. So 
> it mY take a few cycles to get it bug free but it is a big win in the 
> long term.
>

Yes. UnicodeStrings can not be modified (they are effectively 
immutable), so #shallowCopy and #copy just answer the receiver. We'd 
need to update the CuisBook.

Thanks!

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230112/62422275/attachment.htm>


More information about the Cuis-dev mailing list