Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2001:
[Freeciv-Dev] Re: curiosity
Home

[Freeciv-Dev] Re: curiosity

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Reinier Post <rp@xxxxxxxxxx>, Freeciv developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: curiosity
From: Andrew Sutton <ansutton@xxxxxxx>
Date: Sun, 2 Dec 2001 11:47:41 -0500

On Sunday 02 December 2001 11:46 am, Reinier Post wrote:
> > Well, I just don't see any huge benefit in it.  Why C++ objects? What's
> > wrong on C objects? Inheritance? You can do it in C too.
>
> Data inheritance is still easy, but you also want to couple data classes
> (structs) with the code that uses them (methods), and be polymorphic
> (call the foo method on a bar class accepts an object within any subclass
> of bar, and calls the foo function defined in either bar or the first
> superclass of bar up the injheritance chain that defines it).
>
> > Templates are bloating and
> > discouraged anyway. So only benefit is even more bloated and unreadable
> > and messy code, we don't have enough of it already?
>
> Switching to C++ means strictly less code, not more, if you use C++
> features only where required.

excellent points :)

andy


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