[squeak-dev] The Trunk: Collections-fn.825.mcz
Das.Linux at gmx.de
Fri Apr 12 20:43:20 UTC 2019
> On 12.04.2019, at 19:14, tim Rowledge <tim at rowledge.org> wrote:
>> On 2019-04-12, at 12:30 AM, commits at source.squeak.org wrote:
>> Just like strings, characters should convert themselves to an integer when involved in arithmetic with a number.
> Well, ok I guess. BUT why is the conversion simply to the internal bits of the character representation? Surely digit characters ought to convert to the number they directly represent? And wouldn't it be more correct to convert all the other chars via the encoding in use? Unless, I suppose we are actually using unicode already in which case one might make a decent argument that that is The Right One.
I think this is just for symmetry. and yes, asInteger on a character currently gives the unicode codepoint…
More information about the Squeak-dev