Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939)
Home

[Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Paul Zastoupil <paulz@xxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939)
From: Trent Piepho <xyzzy@xxxxxxxxxxxxx>
Date: Thu, 6 Sep 2001 16:02:34 -0700 (PDT)

On Thu, 6 Sep 2001, Paul Zastoupil wrote:
> 
> How about this?

That looks pretty nice.  Certainly a lot cleaner than those sizeof's
everywhere.

Only problem I see is that if someone decides to change an array from a static
one to a dynamically allocated one, the ARRAY_SIZE macro will still work, but
will have a completely wrong value.  Of course one would hope that someone
doing this would find and fix code that thought it knew the length of the
array.



[Prev in Thread] Current Thread [Next in Thread]