Should you be able to initialize a float with a char?

deadalnix deadalnix at gmail.com
Thu May 19 22:17:28 UTC 2022


On Thursday, 19 May 2022 at 20:48:47 UTC, Ali Çehreli wrote:
> In D, char is UTF-8 and ASCII is a subset of UTF-8. Walter's 
> code above is valid without making any ASCII assumption.
>

Sure, it also doesn't perform any useful operation. other than 
"Uncapitalize English, do nothing for non latin languages, and 
create a mess with any non English latin language", which, while 
it certainly is a valid program, it is doesn't looks like it is 
something anyone would actually want to do for other reasons than 
it's easy to write and good enough.


More information about the Digitalmars-d mailing list