On 2 Oct 2007, at 21:43, Akim Demaille wrote:
If, as in one of your
scenarios, we are enclosed in nested "namespace foo { ... }", afaik,
we can't use "namespace ::bar { ... }" to escape them.
Or maybe I have missed something in the thread?
I would just strip it.
When creating namespace names, the leading "::" must be stripped, and
the "::" within the name must be converted into nested "namespace
<name> {...}".
But when referencing names, a leading "::" is allowed; then it should
not be stripped I think. I am not sure how this would arises in the
Bison context, though.
A trailing "::" is always an error.
Hans Aberg
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison