const again
guslay
guslay at gmail.com
Thu Dec 6 22:09:31 PST 2007
Walter Bright Wrote:
>
> Yes for that reason, and the other reason is one rarely wants storage
> allocated for manifest constants. windows.d has 10,000 declarations in
> it, who wants 40K of executable bloat from const declarations?
>
const int x = 1;
Doesn't x get substituted by 1 everywhere in a constant propagation pass?
I thought it didn't take storage, at least in optimization mode.
More information about the Digitalmars-d
mailing list