numericValue for (unicode) characters

Jonathan M Davis jmdavisProg at gmx.com
Fri Jan 4 03:58:18 PST 2013


On Thursday, January 03, 2013 20:40:47 monarch_dodra wrote:
> So... do we agree on
> ascii: int - not found => -1
> uni: double - not found => nan

I'm not a fan of the ASCII version returning -1, but I don't really have a 
better suggestion. I suppose that you could throw instead, but I don't know if 
that's a good idea or not. It _would_ be more consistent with our other 
conversion functions however.

- Jonathan M Davis


More information about the Digitalmars-d mailing list