On Fri, May 27, 2022 at 03:46:03PM +0200, Nicolas Weeger wrote: > Hello. > > > I just pushed branch "cpp-build" which changes all .c files to .cpp files. > The > only other changes are what was required for correctly building (adding some > casts, renaming a few variables, things like that). > > Functionally, everything is the same.
never never never do this. This will kill crossfire permanently. C++ is not C and the vectors stroage have huge overheads, plus there is adapations of name spaces and hundreds of language changes and dozens of variations of C++ and you get little in return, if not nothing, in return. Once you move to C++ you will never have continuity again and in a few short time the project will be uncompilable on most system. This is truly an insane idea and it is frankly lazy. What? C++ has no memory leaks? pffff... There is good reasons why all along lived projects are written in C. It is truly portable and complies over time for decades and it is faster and more efficient that anything else, especially C++ There are hundreds of dead C++ projects that just won't compile today, > > > I'd like to merge those changes to master, but well, I'd like to get opinions > before. > > > I don't plan on migrating to a full C++ code base with classes, inheritance & > other things, the current code is fine. > > I do plan to use C++ to replace some home-grown things (lists handling mostly > - for new code, I don't want to always have to realloc() and check size, a > std::vector is enough for that), and to solve issues with object* items being > free'd while still referenced (with our nice check on "count == saved_count" > here and there urgh). > > > > Regards > > > Nicolas > _______________________________________________ > crossfire mailing list > crossfire@metalforge.org > http://mailman.metalforge.org/mailman/listinfo/crossfire > IRC: http://crossfire.real-time.com/irc/index.html > Discord: http://crossfire.real-time.com/discord/index.html > Project Site: https://sourceforge.net/projects/crossfire/ > Wiki: http://wiki.cross-fire.org/ > Website: http://crossfire.real-time.com -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com Being so tracked is for FARM ANIMALS and extermination camps, but incompatible with living as a free human being. -RI Safir 2013 _______________________________________________ crossfire mailing list crossfire@metalforge.org http://mailman.metalforge.org/mailman/listinfo/crossfire IRC: http://crossfire.real-time.com/irc/index.html Discord: http://crossfire.real-time.com/discord/index.html Project Site: https://sourceforge.net/projects/crossfire/ Wiki: http://wiki.cross-fire.org/ Website: http://crossfire.real-time.com