Static unittests?

Dicebot public at dicebot.lv
Mon Aug 5 10:13:51 PDT 2013


On Monday, 5 August 2013 at 16:50:12 UTC, monarch_dodra wrote:
> On Monday, 5 August 2013 at 14:02:06 UTC, Dicebot wrote:
>> Use case?
>
> The use case is simply checking that your functions can be 
> CTFE'd, and that they produce the correct result.

Considering your, example, you can always do `static 
assert(to!string(1uL << 62) == "4611686018427387904");`

What is the crucial difference?


More information about the Digitalmars-d mailing list