>  Hi,
> 
> On Fri, Oct 11, 2013 at 9:34 AM, Tal Hadad <tal...@hotmail.com> wrote:
> > First time I hear not all properties are GObject.
> >
> > Suppose I have this property:
> >
> > ...
> > public int 1numbered { get; set; }
> > ...
> >
> > This is not a GObject property, since it's started with a number.
> 
> You can't have that at all, see
> https://wiki.gnome.org/Vala/Tutorial#Syntax_Overview :
> 
> "For identifier names the same rules apply as for C identifiers: the
> first character must be one of [a-z], [A-Z] or an underscore,
> subsequent characters may additionally be digits [0-9]."
> 
> Signal names also must start with a letter:
> 
> https://developer.gnome.org/gobject/stable/gobject-Signals.html#g-signal-new
> 
> Regards, Simon

But suppose there's a property which is valid for Vala, but can't be GObject 
property,
what then would be the answer for my questions?

> Date: Fri, 11 Oct 2013 10:46:18 +0200
> Subject: Re: [Vala] Properties == GObject properties?
> From: skage...@gmail.com
> To: tal...@hotmail.com
> CC: vala-list@gnome.org
> 
> 
>  Hi,
> 
> On Fri, Oct 11, 2013 at 9:34 AM, Tal Hadad <tal...@hotmail.com> wrote:
> > First time I hear not all properties are GObject.
> >
> > Suppose I have this property:
> >
> > ...
> > public int 1numbered { get; set; }
> > ...
> >
> > This is not a GObject property, since it's started with a number.
> 
> You can't have that at all, see
> https://wiki.gnome.org/Vala/Tutorial#Syntax_Overview :
> 
> "For identifier names the same rules apply as for C identifiers: the
> first character must be one of [a-z], [A-Z] or an underscore,
> subsequent characters may additionally be digits [0-9]."
> 
> Signal names also must start with a letter:
> 
> https://developer.gnome.org/gobject/stable/gobject-Signals.html#g-signal-new
> 
> Regards, Simon
                                          
_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to