Ryan Bloom wrote:

On Wednesday 26 September 2001 06:57 pm, Brian Pane wrote:

Ryan Bloom wrote:

[...]

+    static const int MAX_SAVED_LENGTHS = 6;

Why is this a static const istead of a #define?

So that its scope will be limited to the enclosing function


But why is that a good thing? This should be a compile time limit set with a simple macro.


If you think there's a use for it outside this function, I have no objection to moving the declaration up to file scope.

--Brian





Reply via email to