char[] + utf-8 + canFind == bug?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Nov 22 08:31:51 PST 2011


On 11/22/11 10:28 AM, Andrea Fontana wrote:
> I've some problems (again) with UTF-8. Try this code:
>
> char[] chars = ['à','è','ì'];

This will truncate the multi-byte characters. It should be a 
compile-time error.

Andrei


More information about the Digitalmars-d mailing list