Re: [Vala] "checked vs unchecked exceptions" && API design guidelines for Vala

2009-02-01 Thread Frederik
Martin Olsson wrote: > When Java was designed they went for checked exceptions. Later when the C# > language was designed they went for unchecked exceptions. I'd like to > understand better why one would go with either one. Also, does GObject > give a bias in any direction? Should I be using "retur

Re: [Vala] "checked vs unchecked exceptions" && API design guidelines for Vala

2009-02-01 Thread Thomas Chust
Martin Olsson wrote: > When Java was designed they went for checked exceptions. Later when the C# > language was designed they went for unchecked exceptions. I'd like to > understand better why one would go with either one. > [...] Hello, I think this is mainly a matter of taste, like it is the c

Re: [Vala] .vapi and GPL

2009-02-01 Thread Ed Schouten
* vas...@gmail.com wrote: > .vapi files are licensed under LGPL license, but some of them defines > bindings to kernel api and hence make use of linux headers on stage of > compiling generated C code which are GPL. does it mean that those > files also should be licensed under GPL or that one can r

[Vala] "checked vs unchecked exceptions" && API design guidelines for Vala

2009-02-01 Thread Martin Olsson
When Java was designed they went for checked exceptions. Later when the C# language was designed they went for unchecked exceptions. I'd like to understand better why one would go with either one. Also, does GObject give a bias in any direction? Should I be using "return codes" instead of "exceptio

Re: [Vala] Abstract properties delared in VAPI files

2009-02-01 Thread Jürg Billeter
On Sat, 2009-01-31 at 13:40 +0100, Jacob Kroon wrote: > Ok, hope this test case is ok, I've attached a small library file which > I compile with "valac foo-bar.vala --library=foo -C", in order to > get .vapi file. > > Then I run "valac foo.vapi", and I get the same kind of error messages. Thanks

Re: [Vala] Type of data in TreeView

2009-02-01 Thread Matías De la Puente
2009/1/31 Thomas Chust > Matías De la Puente wrote: > > [...] > > I want to add any type of data to a TreeView. > > What is the best option to do this ? > > [...] > > Hello, > > the GLib already provides a generic value container: GLib.Value. > It should be possible to use that. > I try to use t

Re: [Vala] .vapi and GPL

2009-02-01 Thread Maciej Piechotka
vas...@gmail.com writes: > .vapi files are licensed under LGPL license, but some of them defines > bindings to kernel api and hence make use of linux headers on stage of > compiling generated C code which are GPL. does it mean that those > files also should be licensed under GPL or that one can re