Re: [fltk.general] fltk1.3 namespace in fluid

2013-03-21 Thread Greg Ercolano
I am trying to port my software from flkt2 to fltk1.3. However fluid1.3 complains due to lacking namespaces. Any chance of adding namespaces to fluid1.3 or a work-around? Gonzalo, I've opened STR #2936 for this feature request, so that it doesn't get lost.

Re: [fltk.general] fltk1.3 namespace in fluid

2013-03-21 Thread MacArthur, Ian (Selex ES, UK)
I am trying to port my software from flkt2 to fltk1.3. However fluid1.3 complains due to lacking namespaces. Any chance of adding namespaces to fluid1.3 or a work-around? Gonzalo, I've opened STR #2936 for this feature request, so that it doesn't get lost. Oh, was Gonzalo

Re: [fltk.general] fltk1.3 namespace in fluid

2013-03-21 Thread Roman Kantor
I am using namespaces in fluid, although with some tricks. Fluid complains (and does not accept) lines with open { brackets so first I have defined macros #define NAMESPACE_START(name) namespace name { #define NAMESPACE_END} and then use these macros as 1) either in declaration block and

Re: [fltk.general] fltk1.3 namespace in fluid

2013-03-21 Thread Greg Ercolano
On 03/21/13 11:24, MacArthur, Ian (Selex ES, UK) wrote: Oh, was Gonzalo asking whether fluid could support namespaces? I suppose in fluid a namespace might be entered a bit like a grouping widget, such that other entities would be declared nested inside it? Is that the sort of thing?

[fltk.general] fltk1.3 namespace in fluid

2013-03-20 Thread Gonzalo Garramuno
I am trying to port my software from flkt2 to fltk1.3. However fluid1.3 complains due to lacking namespaces. Any chance of adding namespaces to fluid1.3 or a work-around? ___ fltk mailing list fltk@easysw.com

Re: [fltk.general] fltk1.3 namespace in fluid

2013-03-20 Thread Greg Ercolano
On 03/20/13 11:25, Gonzalo Garramuno wrote: I am trying to port my software from flkt2 to fltk1.3. However fluid1.3 complains due to lacking namespaces. Any chance of adding namespaces to fluid1.3 or a work-around? To use a namespace, I'd think New-Code-Declaration, and set it to:

Re: [fltk.general] fltk1.3 namespace in fluid

2013-03-20 Thread Greg Ercolano
On 03/20/13 13:51, Greg Ercolano wrote: Sorry I can't think of anything better; looks like fluid needs to be modified, because New-Code-Declaration complains about the unclosed brace. I don't know fluid's code well at all, but it looks like the 'code check' is due to the

Re: [fltk.general] fltk1.3 namespace in fluid

2013-03-20 Thread Greg Ercolano
On 03/20/13 14:26, Greg Ercolano wrote: Perhaps an easy hack is to modify this line in Fl_Decl_Type::open(): message = c_check(cc[0]=='#' ? c+1 : c); ..to instead read something like: if ( !strncmp(c,namespace,9) !strcmp(c,};) ) message = c_check(cc[0]=='#' ? c+1 : c);