Re: EuGTK - get vs get conflict
- Posted by mattlewis (admin) Sep 16, 2010
- 871 views
jimcbrown said...
mattlewis said...
irv said...
I suppose I should add "namespace gtk" to the GtkEngine - there's no downside to this, is there?
Not really. Users aren't forced to use it, and the parser is fairly smart about detecting namespace qualifiers vs other symbols. BTW, default namespaces are considered to be of public scope.
What happens if two files have the same default namespace and thus conflict?
Same thing as if they have two other symbols named the same. The user of the two files will have to create his own namespaces to disambiguate (i.e., include <file> as <namespace>). The local namespace will override any default namespaces, just like other local symbols override symbols from other files.
Matt