Re: [Vala] posix.vapi additions

2009-01-27 Thread Jürg Billeter
On Tue, 2009-01-27 at 19:28 +0100, Michael 'Mickey' Lauer wrote: > I found the need for open(2) and friends. Please add to posix.vapi: Thanks, added. Jürg ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] posix.vapi additions

2009-01-27 Thread Jürg Billeter
On Tue, 2009-01-27 at 21:27 +0100, Frederik wrote: > Michael 'Mickey' Lauer wrote: > > I found the need for open(2) and friends. Please add to posix.vapi: > > > > I'd suggest binding it this way: > > [...] > > Then the code will look more object oriented: I don't think we should try to bind th

Re: [Vala] posix.vapi additions

2009-01-27 Thread Frederik
Michael 'Mickey' Lauer wrote: > I found the need for open(2) and friends. Please add to posix.vapi: > > [CCode (cheader_filename = "fcntl.h")] > public const int O_ACCMODE; > [CCode (cheader_filename = "fcntl.h")] > public const int O_RDONLY; > ... > [CCode (cheader_filename =

[Vala] posix.vapi additions

2009-01-27 Thread Michael 'Mickey' Lauer
I found the need for open(2) and friends. Please add to posix.vapi: [CCode (cheader_filename = "fcntl.h")] public const int O_ACCMODE; [CCode (cheader_filename = "fcntl.h")] public const int O_RDONLY; [CCode (cheader_filename = "fcntl.h")] public const int O_WRONLY; [CC

Re: [Vala] undefined symbol: vala_code_context_set_deprecated

2009-01-27 Thread pancake
it says that it cannot find this symbol. probably you are using valac against the old libvala. check it with "ldd" Frédéric Gaudy wrote: Hi, I tried vala 0.5.6 to compile my program, but since this version (I used 0.5.3 before) I've got the error message : /usr/bin/valac: symbol lookup error:

[Vala] undefined symbol: vala_code_context_set_deprecated

2009-01-27 Thread Frédéric Gaudy
Hi, I tried vala 0.5.6 to compile my program, but since this version (I used 0.5.3 before) I've got the error message : /usr/bin/valac: symbol lookup error: /usr/bin/valac: undefined symbol: vala_code_context_set_deprecated Do you know what mean this error? Thanks. ___

[Vala] automatic basic type conversions

2009-01-27 Thread pancake
Actually Vala forces you to pass the correct type for assignations , argument passing in functions, etc.. I think this should be a warning instead of an error. And Vala should know about which basic types can be automatically casted (and show a warning) or an error if they cannot be converted.

Re: [Vala] Inverse of control in VALA?

2009-01-27 Thread Pawel Cesar Sanjuan Szklarz
(SORRY, sended before just partially) Hi. In any case you need some configuration. In google-guice they make the configuration of 'when, what and how put something where' in the code: "What, How" public class MyModule implements Module { public void configure(Binder binder) { binder.bind(Ser

Re: [Vala] Inverse of control in VALA?

2009-01-27 Thread Pawel Cesar Sanjuan Szklarz
Hi. In any case you need some configuration. In google-guice they make the configuration of 'when, what and how put something where' in the code: "What, How" public class MyModule implements Module { public void configure(Binder binder) { binder.bind(Service.class) .to(ServiceImpl.cla