Re: [Vala] How to initialize a Glib.Pid?

2009-04-18 Thread Jan Hudec
Hello, Levi Bard taktaktaktaktaktaktaktaktak...@... writes:  * The variable is actually initialized in the resulting C code, by means of   [CCode (default_value = 0)] attribute applied to Glib.Pid type in vapi.   However, valac insists that I have to initialize it nevertheless. I think

[Vala] How to initialize a Glib.Pid?

2009-04-17 Thread Jan Hudec
Hello Folks, I have a switch, that will actually always initialize a variable of type Glib.Pid, but valac wouldn't trust me and say it might be uninitialized. Now there are two things: * The variable is actually initialized in the resulting C code, by means of [CCode (default_value = 0)]

Re: [Vala] How to initialize a Glib.Pid?

2009-04-17 Thread Levi Bard
 * The variable is actually initialized in the resulting C code, by means of   [CCode (default_value = 0)] attribute applied to Glib.Pid type in vapi.   However, valac insists that I have to initialize it nevertheless. I think this is related to http://bugzilla.gnome.org/show_bug.cgi?id=578968

Re: [Vala] How to initialize a Glib.Pid?

2009-04-17 Thread Hans Baier
2009/4/18 Jan Hudec b...@ucw.cz: Hello Folks, I have a switch, that will actually always initialize a variable of type Glib.Pid, but valac wouldn't trust me and say it might be uninitialized. Using a cast GLib.Pid pid = (GLib.Pid)0; works for me.