Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2001:
[Freeciv-Dev] Re: C++ (was: curiosity)
Home

[Freeciv-Dev] Re: C++ (was: curiosity)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: C++ (was: curiosity)
From: Andrew Sutton <ansutton@xxxxxxx>
Date: Sat, 1 Dec 2001 14:27:31 -0500

On Saturday 01 December 2001 12:15 pm, you wrote:
> Yes ;) Leave only basic inheritance and these "nice" <<>>
> operators. Ah I forgot the string class uses also templates.

templates shouldn't slow down code too much. template instantion is just a 
compiler trick to generate new classes without having to write them. i'm not 
sure why using templates would cause code to slow down at all. cause bloat, 
yes! but not speed issues.

i'm not so concerned about the code size footprint yet. i really don't think 
that we'd be using too much in the way of templates. most of the code can 
probably be reduced to single inheritence.

andy


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