[GNC-dev] 4.0 and C++?
jralls at ceridwen.us
Wed Jul 8 23:29:48 EDT 2020
It's a desired trend alright. We push for new code to use modern C++ (meaning C++ 11 idioms and with more emphasis on generics than OO), but not every contributor is up to writing that. *But* GnuCash is over a million lines of C code and we expect it will take many years and many development cycles to convert everything.
There's another consideration: Our GUI is Gtk, and while there's a C++ wrapper for it called gtkmm we don't use that much. We also have bindings created via SWIG, and while SWIG was designed for C++ and works reasonably well with it it takes a fair amount of care to get it to work correctly. To deal with those the C++ modules we've created are wrapped in C to ease portability.
> On Jul 8, 2020, at 6:00 PM, Christopher Lam <christopher.lck at gmail.com> wrote:
> IIUC this is a desired trend, waiting for good pair of hands!
> On Thu, 9 Jul 2020, 12:33 am Jean Laroche, <ripngo at gmail.com> wrote:
>> Maybe I mis-remember, but I thought that 4.0 would be the version where
>> we switch from using C to using C++ + boost etc for most of the code in
>> Was I confused? Is there still a plan to do this rewrite? If so how far
>> along is it, and when will it be folded into the current branches?
>> gnucash-devel mailing list
>> gnucash-devel at gnucash.org
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
More information about the gnucash-devel