Re: Question

From: Daniel W. Burke (
Date: 02/19/96

At 12:14 PM 2/18/96 -0800, you wrote:
>On Sun, 18 Feb 1996, Sean P. Mountcastle wrote:
>> 	In the newest beta of circlemud, in constant.c the table of 
>> backstab multipliers has [36] as it's array size, but the comment says 
>> its based on level.  If it's based on dex, thats fine, the comment just 
>> needs to be changed, if its based on level, then shouldn't 36 be changed 
>> to LVL_IMPL+1?
>  If it's changed to LVL_IMPL+1, it's too easy for someone to forget to 
>add fields to the array when he adds more wizard levels.  The array will 
>increase in size, but not have fields defined for the top slot(s).  As it 
>is, in my version (bpl8), the array is defined to 38, so only if I have 
>more than 8 (!) wizard levels do I have to worry about it.

Is there no way to get the compiler to give a warning if an array doesn't
have enough elements? I know it does if there's too much...
Brazil - IMP of AddictMUD 4000

This archive was generated by hypermail 2b30 : 12/07/00 PST