help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: %prefix with C++ namespaces


From: Sebastian Pipping
Subject: Re: %prefix with C++ namespaces
Date: Mon, 01 Oct 2007 20:54:03 +0200
User-agent: Thunderbird 1.5.0.13 (X11/20070824)

Joel E. Denny wrote:
If we start "parsing" namespace names, we will have a million
new questions to answer.  What is the output of "::foo",

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
of the global namespace?

I assume so because I had lex() in its own namespace and yylex
defined to "lex" working together before.




Sebastian





reply via email to

[Prev in Thread] Current Thread [Next in Thread]