Yes it's a disadvantage(if you look this way) of Vala, but don't think it's a 
bug.
You see, Vala is based on GObject in pure C, and the "cname" of NameSpaceName
is name_space_name...
But I your post make me wonder, shell Vala convert name_space_name to "cname"
name__space__name for compatibility, or leave it this way and do not confuse
programmers?
Lets see what the dev team have to say about it.

> Date: Sat, 15 Oct 2011 18:53:53 +0400
> From: [email protected]
> To: [email protected]
> Subject: [Vala] namespaces bug
> 
> Hello list!
> 
> This simple vala-code:
> namespace NameSpaceName {int myval = 2;}
> namespace name_space_name {int myval = 3;}
> 
> void main() {
>    NameSpaceName.myval = 3;
>    name_space_name.myval = 4;
> }
> 
> 
> produce this C-code:
> ...
> extern gint name_space_name_myval;
> gint name_space_name_myval = 2;
> gint name_space_name_myval = 3;
> ...
> 
> 
> Thanks.
>    niXman.
> _______________________________________________
> vala-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/vala-list
                                          
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to