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.

Ryan
______________________________________________________________
Ryan Bloom                              [EMAIL PROTECTED]
Covalent Technologies                   [EMAIL PROTECTED]
--------------------------------------------------------------

Reply via email to