[Geany-Devel] Let's move to C++98 - Re: Lets move to C99
Nick Treleaven
nick.treleaven at xxxxx
Wed Sep 4 16:20:56 UTC 2013
On 01/09/2013 02:36, Matthew Brush wrote:
>>> I would even go so far as to say it's silly to not use C++11 since it's
>>> [...]
>>
>
> Just for fun I wrote some theoretical code that could be used in a
> program like Geany to compare styles between various C's and C++'s
> (note: none of it tested).
>
> http://pastebin.geany.org/gYFMO/
My C89 & C++ version:
guint i;
foreach_document(i) {
GeanyDocument *doc = documents[i];
// do stuff with every valid doc
}
I don't think we should rewrite Geany's API in C++, or maintain a C++
wrapper for the C one, except for any cases which are particularly
bug-prone.
More information about the Devel
mailing list