stl constructs inside the union block

2007-10-02 Thread Randy Smith
I'm trying to incorporate c++ stl constructs into the %union { } block of yacc. Specifically, I'm trying to do something similar to this: %union { ... std::list* int_list; ... } This yields the error: eidd.y:100: error: using-declaration for non-member at class scope eidd.y:100: error: exp

Re: %prefix with C++ namespaces

2007-10-02 Thread Hans Aberg
On 2 Oct 2007, at 19:55, Joel E. Denny wrote: I do not think the leading "::"-issue is very important - but it would be nice showing one has given thought to it. :-) So, I'm seeing no reason to disallow it. If the user wants absolute references, he should probably get absolute references.

Re: %prefix with C++ namespaces

2007-10-02 Thread Joel E. Denny
On Tue, 2 Oct 2007, Hans Aberg wrote: > > > I do not think the leading "::"-issue is very important - but it would be > > > nice > > > showing one has given thought to it. :-) > > > > So, I'm seeing no reason to disallow it. If the user wants absolute > > references, he should probably get absol

Re: %prefix with C++ namespaces

2007-10-02 Thread Hans Aberg
On 2 Oct 2007, at 07:03, Joel E. Denny wrote: It also occurs to me now that a leading "::" is not completely redundant. The given namespace is used in two ways: for declarations and for references. The former needs the splitting we discussed. I think the latter would use the given namespac

Re: %prefix with C++ namespaces

2007-10-02 Thread Vincent Zweije
Sebastian Pipping wrote: Joel E. Denny wrote: I figured the namespace name is meant to be relative to the global namespace, so a leading "::" is implicit if not specified. I'm not sure if this is true. Could it be that without "::" it's relative to the namespace the call was made from instead o