numericValue for (unicode) characters

monarch_dodra monarchdodra at gmail.com
Thu Jan 3 09:13:02 PST 2013


On Thursday, 3 January 2013 at 08:23:06 UTC, Dmitry Olshansky 
wrote:
> Now take this code:
> map!numericValue(...)
>
> If the code also happens to import std.uni it's going to stop 
> compiling.

Hum... We could always "camp" the std.uni's numericValue function?

//----
double numericValue()(dchar c) const nothrow @safe
{
     static assert(false, "Sorry, std.uni.numericValue is not yet 
implemented");
}
//----

This would avoid the breakage you mentioned.


More information about the Digitalmars-d mailing list