Re: [Vala] Change in 0.23.1 for array ownership and .length parameter

2014-01-07 Thread Jürg Billeter
Hi Tal, On Tue, 2014-01-07 at 07:46 +0200, Tal Hadad wrote: The user might use ar varible later and it will crush he's application. If he was lucky enough, he would realize that ar is null. It's not easy to find that this line causing it. Risking dangling pointers is much worse than null

Re: [Vala] Change in 0.23.1 for array ownership and .length parameter

2014-01-07 Thread Luca Bruno
On 07/01/2014 06:46, Tal Hadad wrote: This case trigger me a question I wanted to ask before. Why transforming ownership is nulling the original variable? Instead of nulling, maybe just change variable to behave as unowned. You might say that there is a problem in my solution, like this code:

Re: [Vala] --enable-experimental-non-null and GLib.OptionEntry[]

2014-01-07 Thread Luca Bruno
On 07/01/2014 15:51, Michele Dionisio wrote: Hi I'm working not with valac 0.22. building with --enable-experimental-non-null there is no way to define private const GLib.OptionEntry[] options = { // --version { version, 0, 0, OptionArg.NONE, ref version,

[Vala] --enable-experimental-non-null and GLib.OptionEntry[]

2014-01-07 Thread Michele Dionisio
Hi I'm working not with valac 0.22. building with --enable-experimental-non-null there is no way to define private const GLib.OptionEntry[] options = { // --version { version, 0, 0, OptionArg.NONE, ref version, Display version number, null }, //

Re: [Vala] --enable-experimental-non-null and GLib.OptionEntry[]

2014-01-07 Thread Michele Dionisio
sorry how I can do that? 2014/1/7 Luca Bruno lethalma...@gmail.com On 07/01/2014 15:51, Michele Dionisio wrote: Hi I'm working not with valac 0.22. building with --enable-experimental-non-null there is no way to define private const GLib.OptionEntry[] options = { //

Re: [Vala] --enable-experimental-non-null and GLib.OptionEntry[]

2014-01-07 Thread Luca Bruno
You have to change the glib-2.0.vapi distributed with vala. We as maintainers should also fix that I guess. On Tue, Jan 7, 2014 at 4:08 PM, Michele Dionisio michele.dioni...@gmail.com wrote: sorry how I can do that? 2014/1/7 Luca Bruno lethalma...@gmail.com On 07/01/2014 15:51, Michele