numericValue for (unicode) characters

Dmitry Olshansky dmitry.olsh at gmail.com
Thu Jan 3 10:11:43 PST 2013


03-Jan-2013 21:13, monarch_dodra пишет:
> 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");
> }
> //----

We'd pretty much have to.


-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list