[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux-team] Gnome 0.99.8



Bruno Mairlot wrote:
> 
> Raphael Bauduin 2 wrote:
> 
> > A propos de GTK+, tu ne prefererais pas l'utiliser en orienté objet
> > (gtk-- ou wxGTK) ? Il me semble que c'est assez lourd non? , GTK+. Mais
> > j'aime bien GTK+. Si je programme une interface, elle sera GTK ou elle
> > ne sera pas :-)
> >
> 
> Bruno Mairlot wrote:
>
> Je n'aime pas l'orienté objet. Je trouve que c'est plus efficace en C
> pure. Dans le cas de Gtk+, Gtk-- est intéressant uniquement si tu veux
> concevoir des widgets au-dessus de ceux existant déjà.

Voici un extrait de la FAQ de bjarne Stroustrup (le createur du C++).

	C is better than C++ for small projects, right?

	Not in my opinion. I never saw a project for which C was better than C++ 
	for any reason but the lack of a good C++ compiler. 

Et un autre.
	What is the difference between C and C++?

	C++ is a direct descendant of C that retains almost all of C as a subset.
	C++ provides stronger type checking than C and directly supports a wider
	range of programming styles than C. C++ is "a better C" in the sense that
	it supports the styles of programming done using C with better type
	checking and more notational support (without loss of efficiency). In the
	same sense, ANSI C is a better C than K&R C. In addition, C++ supports data
	abstraction, object-oriented programming, and generic programming (see The 
	C++ Programming Language (3rd Edition)"; Appendix B discussing compatibility
	issues is available for downloading). 
	I have never seen a program that could be expressed better in C than in C++
	(and I don't think such a program could exist - every construct in C has an
	obvious C++ equivalent). 
	However, there still exist a few environments where the support for C++ is


Je crois qu'il est assez bien placer pour savoir ce qu'il dit.

Ludovic Kuty.
---------
This message was send by Majordomo 1.94.3. Please repport problems to
manu@rtfm.be. If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.