Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: (PR#8683) remove specvec?
Home

[Freeciv-Dev] Re: (PR#8683) remove specvec?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#8683) remove specvec?
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 6 May 2004 15:48:33 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8683 >

Mike Kaufman wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=8683 >
> 
> On Wed, May 05, 2004 at 02:28:06PM -0700, Jason Short wrote:
> 
>><URL: http://rt.freeciv.org/Ticket/Display.html?id=8683 >
>>
>>Specvec (utility/specvec*) is unused.  I didn't even know it existed 
>>until Raimar pointed it out to me today.  It says that it creates 
>>variable-sized type-safe arrays ("what you end up doing when you don't 
>>use C++").  But C99 already has variable-sized typed arrays.  So it 
>>should never be used.
>>
>>Can we remove it?
> 
> 
> No. gen-effects makes extensive use of specvec.

I still don't see what benefits (aside from decreased speed) it offers 
over simply using an array.  In fact the header comment basically says 
right-out that it just replaces an array.  Can someone explain?

jason




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