Scope storage class
Walter Bright
newshound1 at digitalmars.com
Wed Nov 26 13:13:27 PST 2008
Jarrett Billingsley wrote:
> The reason I wonder is because I would expect that the compiler is
> still allocating the delegate on the heap if you use the first syntax.
> (the second is also shorter and clearer.)
There's no reason to suspect. Just obj2asm the output and see.
Furthermore, better results will come from:
int b() {
k -= 1;
return a(k, b(), x1, x2, x3, x4);
};
instead of using the delegate.
More information about the Digitalmars-d-announce
mailing list