TickDuration.to's second template parameter

Steven Schveighoffer schveiguy at yahoo.com
Mon Apr 9 10:36:10 PDT 2012


On Mon, 09 Apr 2012 13:05:09 -0400, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:

> On Monday, April 09, 2012 09:36:45 Steven Schveighoffer wrote:
>> I think what Andrei is asking for is to change this:
>>
>> T to(string units, T)() @safe const pure nothrow
>>
>> Into this:
>>
>> T to(string units, T = long)() @safe const pure nothrow
>
> We could add that, but why?

I don't know.  Andrei has the use case ;)  Perhaps he has a template  
string instead of directly calling the symbol.

I was just clarifying what I think he was asking for, it seemed to be  
misunderstood...

-Steve


More information about the Digitalmars-d mailing list