Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2000:
[Freeciv-Dev] Re: #define $#@$%! template
Home

[Freeciv-Dev] Re: #define $#@$%! template

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: #define $#@$%! template
From: Thue Janus Kristensen <thue@xxxxxxx>
Date: Thu, 27 Apr 2000 00:54:48 +0200

On Thu, 27 Apr 2000, Tomasz Wegrzanowski wrote:
> On Wed, Apr 26, 2000 at 01:08:34PM -0500, Dan Gohman wrote:
> > What would people think about writing freeciv in c++?
> > 
> > Ways in which freeciv would benifit:
> > 
> > - Language support for objects (unit, city, player, etc.)
> > - STL collections to replace the speclist stuff and the hashing code
> > - real iterators instead of big cpp macros.
> > 
> > I've done a little bit of hacking on this on my local tree, and I think
> > this could be a worthwhile thing. IMO the code looks a lot cleaner.
> > 
> > I'm open to discussion.
> 
> And cons are :
> - less people know c++ that c
> - c++ compiles much slower
> - c++ compiler makes worse code
> 
> Is there any TODO item that would be much easier if switched c -> c++ ???

Well, objects would be nice for designing AI.
(Not that I know C++, but not knowing C didn't stop me when I needed to
code in it :-P )

-Thue



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