Le ven 06/06/2003 � 23:16, Raphael Manfredi a �crit : > Quoting <[EMAIL PROTECTED]> from ml.softs.gtk-gnutella.devel: > :Why not using C++ for GTK-G ? > > Why using it? ;-) > > :I saw you were using such notation '[object]_[method]'. You widly used > :'[object]_init' or '[object]_close' or '[object]_shutdown' and this > :looks like objects initialisations and destruction. So why ? > > Yes, this is modularity. No, this is a little object oriented approach.
> Actually, the C code of GTKG is a mix of procedural style and OO style. > > I don't like C++. It's not really an OO language. At first sight it > might appear to be one, but it is not. And it's so easy to write a mess > in C++ that, brrr... it's not very encouraging. > > (I can develop why I think C++ is not an OO language if you want.) Yes I would like. I always heard favors on C++ (implicit memory management, 'inline' checkings, inheritance, reusability of tested classes, ...) but I'm interrested in knowing drawbacks. > Furthermore, it takes better engineers to do OO design properly. > Trivial OO design is easy, good OO design is hard. It would be harder > to find good OO programmers than it is to find good C programmers. It's true that efficient object programing needs some experience (or to read some Design Patterns) but it's very intuitive for newbies to provide an acceptable result. Maybe the change is hard for people who began to develop with procedural languages. > Finally, I don't know how good gcc is as a C++ compiler. For me a good design (more readable in C++), a clean memory management and the wide reuse of tested classes contribute to produce an efficient software. I'm agree that you can do in C as efficient as in C++ but it will needs more care and work. J�r�me ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Gtk-gnutella-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel
