Re: [Geany-Devel] Let's move to C++98 - Re: Lets move to C99

2013-09-05 Thread Matthew Brush
On 13-09-04 09:20 AM, Nick Treleaven wrote: 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

Re: [Geany-Devel] Let's move to C++98 - Re: Lets move to C99

2013-09-05 Thread Nick Treleaven
On 05/09/2013 09:41, Matthew Brush wrote: On 13-09-04 09:20 AM, Nick Treleaven wrote: My C89 C++ version: guint i; foreach_document(i) { GeanyDocument *doc = documents[i]; // do stuff with every valid doc } While this code is short, it's actually sort of nuts too (and also not

Re: [Geany-Devel] Let's move to C++98 - Re: Lets move to C99

2013-09-05 Thread Nick Treleaven
On 01/09/2013 02:36, Matthew Brush wrote: On 13-08-29 05:08 AM, Nick Treleaven wrote: On 29/08/2013 02:39, Matthew Brush wrote: [...] If we were to use C++, I think it'd be pointless to limit it to CFront/CwithClasses-style 1980's C++. We should use common/standard stuff like standard

Re: [Geany-Devel] Let's move to C++98 - Re: Lets move to C99

2013-09-05 Thread Matthew Brush
On 13-09-05 02:26 AM, Nick Treleaven wrote: On 01/09/2013 02:36, Matthew Brush wrote: On 13-08-29 05:08 AM, Nick Treleaven wrote: On 29/08/2013 02:39, Matthew Brush wrote: [...] If we were to use C++, I think it'd be pointless to limit it to CFront/CwithClasses-style 1980's C++. We should

Re: [Geany-Devel] Let's move to C++98 - Re: Lets move to C99

2013-09-04 Thread Nick Treleaven
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).

Re: [Geany-Devel] Let's move to C++98 - Re: Lets move to C99

2013-09-04 Thread Nick Treleaven
On 01/09/2013 01:08, Lex Trotman wrote: I mean inheritance and virtual functions. I don't think they would pull their weight in src, unless we were going to use gtkmm for custom widgets. Agree I can't immediately think of places where inheritance is likely to be useful at high level, but thats

Re: [Geany-Devel] Let's move to C++98 - Re: Lets move to C99

2013-08-31 Thread Matthew Brush
On 13-08-31 07:42 PM, Lex Trotman wrote: [...] 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/ http://pastebin.geany.org/gYFMO/ As

Re: [Geany-Devel] Let's move to C++98 - Re: Lets move to C99

2013-08-31 Thread Matthew Brush
On 13-08-31 07:05 AM, Nick Treleaven wrote: On 29/08/2013 06:47, Lex Trotman wrote: [...] Nick has offered that C++ might attract him to contribute more, I might have time at the end of my current contract, unless I get another quickly, I guess Colomban is out, Matthew? anybody else? I'm

Re: [Geany-Devel] Let's move to C++98 - Re: Lets move to C99

2013-08-31 Thread Matthew Brush
On 13-08-31 04:37 PM, Lex Trotman wrote: On 1 September 2013 00:05, Nick Treleaven nick.trelea...@btinternet.comwrote: On 29/08/2013 06:47, Lex Trotman wrote: [...] On using gtkmm, personally I think it is *way* better than the C interface to GTK, but I don't know if it can be mixed

Re: [Geany-Devel] Let's move to C++98 - Re: Lets move to C99

2013-08-29 Thread Nick Treleaven
On 29/08/2013 02:39, Matthew Brush wrote: Personally, I think it'd be great to use C++ in Geany, and it would more than likely actually make it *easier* for people to contribute since outside of a sampling of GTK+-using desktop/GUI software (and obviously embedded, kernel, drivers, and similar),

Re: [Geany-Devel] Let's move to C++98 - Re: Lets move to C99

2013-08-28 Thread Nick Treleaven
On 26/08/2013 19:54, Dimitar Zhekov wrote: On Mon, 26 Aug 2013 16:07:13 +0100 Nick Treleaven nick.trelea...@btinternet.com wrote: * RAII - this is a pretty essential feature for safe resource management. This works for global/static and auto classes. We can wrap a gchar *s = g_strdup_printf()

Re: [Geany-Devel] Let's move to C++98 - Re: Lets move to C99

2013-08-28 Thread Dimitar Zhekov
On Wed, 28 Aug 2013 15:52:17 +0100 Nick Treleaven nick.trelea...@btinternet.com wrote: * Developer enjoyment, productivity gaining more experience with C++. (This might be an incentive for e.g. me to spend more time working on Geany). This has to be offset against those that might need to