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?
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" a
> > 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 Gonz
> 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.
__
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(c&&c[0]=='#' ? c+1 : c);
>..to instead read something like:
> if ( !strncmp(c,"namespace",9) &&
> !strcmp(c,"};") ) message = c_check(c&&c[0]=='#' ? c+1
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 F
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:
7 matches
Mail list logo