On Sat, Feb 11, 2012 at 12:20:22PM +0100, Jos van Uden wrote: > bool isKaprekar(in long n) pure nothrow > in { > assert(n > 0, "isKaprekar(n): n must be > 0"); > assert(n <= uint.max, "isKaprekar(n): n must be <= uint.max"); > } body { [...]
Shouldn't you just use "in ulong n" as parameter instead of long with a contract? T -- The richest man is not he who has the most, but he who needs the least.