Re: [OLC] OasisOLC v1.6b for bpl14

From: Tony Robbins [Kupek] (tonyr@NWPACLINK.COM)
Date: 08/17/98


On Mon, 17 Aug 1998, George wrote:
> On Mon, 17 Aug 1998, Warren Robbins wrote:
> >Question:  Why does sprintbit() use a const char *whatever[] as of bpl14?
> >If my memory serves me, it wasn't constant before.  Does this create a
> >problem?  I question this because, I could in theory make a clan code
> >which creates a character array that would not be a constant, and in
> >theory use sprintbit.  Why the `const'?
>
> Because sprintbit() doesn't change the array, thus it can accept a const.

But _CAN_ and _MUST_ are two different things.  I just was wondering
because you get a bunch of warnings when you put the bpl13 patch for Oasis
into bpl14.  All over the difference between "extern char *boogies[]" and
"extern const char *boogies[]".

-B.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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