typeof(string.front) should be char

Timon Gehr timon.gehr at gmx.ch
Sat Mar 3 12:05:40 PST 2012


On 03/03/2012 08:46 PM, Jonathan M Davis wrote:
> On Saturday, March 03, 2012 18:38:44 Timon Gehr wrote:
>> On 03/03/2012 09:40 AM, Jonathan M Davis wrote:
>>> ...  but operating on
>>> code points is _far_ more correct than operating on code units. It's also
>>> more efficient.
>>> [snip.]
>>
>> No, it is less efficient.
>
> Operating on code points is more efficient than operating on graphemes is what I
> meant. I can see that I wasn't clear enough on that.
>

Makes sense.

> It's more correct than operating on code units and less correct than operating
> on graphemes,while it's less efficient than operating on code units and more
> efficient than operating on graphemes.
>
> - Jonathan M Davis

When the code actually only cares about some characters that have 7-bit 
ASCII values, most of the time there are no correctness issues when 
operating on code units directly.


More information about the Digitalmars-d-learn mailing list