B
Bill Woessner
Is there any benefit to be gained from declaring a local constant static?
The only scenario I can envision is if the constant were a large,
complicated object or perhaps a large array. Making it static would
ensure it's only allocated once. The flip side, of course, is that it
hangs around until your program terminates.
Sorry if this is an old topic. I've thought about it for a while and
haven't come to any resolution. Thanks.
--Bill
The only scenario I can envision is if the constant were a large,
complicated object or perhaps a large array. Making it static would
ensure it's only allocated once. The flip side, of course, is that it
hangs around until your program terminates.
Sorry if this is an old topic. I've thought about it for a while and
haven't come to any resolution. Thanks.
--Bill