Re: [Vala] Problem with switch statment

2009-09-28 Thread Jamie McCracken
On Mon, 2009-09-28 at 14:18 +0200, Xavier Bestel wrote: On Mon, 2009-09-28 at 13:59 +0200, Nicolas wrote: Feel free to file a bug Yes but i don't know what to say to describe the bug ! Something like Genie sometimes introduces a spurious break statement in switch, and in the body of the

[Vala] Problem with switch statment

2009-09-27 Thread Nicolas
Hi, I have a problem convert function from vala to genie, this is the code: Vala code: switch (eb.button) { case 1: blah blah blah case 2: blah blah blah case 3: blah blah blah } My genie code:

Re: [Vala] Problem with switch statment

2009-09-27 Thread Jamie McCracken
On Sun, 2009-09-27 at 15:45 +0200, Nicolas wrote: Hi, I have a problem convert function from vala to genie, this is the code: Vala code: switch (eb.button) { case 1: blah blah blah case 2: blah blah blah

Re: [Vala] Problem with switch statment

2009-09-27 Thread Nicolas
Hi Jamie, Thanks for your response. My function work but i have this message when building: treeview.gs:143.9-158.13: warning: unreachable code detected Compilation succeeded - 1 warning(s) This is the code: case eb.button when 1