On 13-2-2012 15:14, bearophile wrote:
Zach the Mystic:

void setRandomColorPair( ref ColorPair cp )
{
     import std.random;
     ubyte u(int a, int b) { return cast(ubyte) uniform(a,b); }

Where possible it's good to add "static" to nested functions:


Why?

Reply via email to