Re: [Vala] namespaces bug
- From: Tal Hadad <tal_hd hotmail com>
- To: Vala Mail List <vala-list gnome org>
- Subject: Re: [Vala] namespaces bug
- Date: Sat, 15 Oct 2011 18:35:19 +0200
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: i nixman gmail com
To: vala-list gnome org
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
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]