Re: pu$ï¿œle

2010-07-18 Thread Jonathan M Davis
On Sunday 18 July 2010 17:15:15 strtr wrote: > > I actually knew about unicode, but I mistakenly thought a char to be a code > point (thus variable in size). > Somehow I missed any documentation telling me otherwise. > Now that I look for it it actually says: > char |unsigned 8 bit UTF-8 >

Re: pu$ï¿œle

2010-07-18 Thread Jonathan M Davis
On Sunday 18 July 2010 10:59:21 strtr wrote: > I totally agree that putting a cast there is probably not really a solution > (or legal). > Warnings for all non-dchar types. > Is there anybody using foreach(c;chars) || foreach(char c;chars) correctly > (which couldn't be done with ubytes)? As soon

Re: pu$ï¿œle

2010-07-18 Thread Jonathan M Davis
On Sunday 18 July 2010 06:16:09 strtr wrote: > I agree with the warning. A good warning would get people to read up on > UTF. And if you really want to have char you'll need to cast: > foreach(cast(char)c; chars) Actually, the cast would be totally unnecessary. Putting foreach(char c; chars) wou