Re: [Vala] Vala: Signal from POSIX

2010-10-19 Thread Phil Housley
On 19 October 2010 03:33, Ervin Orense Balaoro wrote: > Yes, static variables will solve the problem. :D > > Thanks Phil! > > But there is a limitation to this approach by making Check implement an > interface(i.e. PrintInterface), > where printf_value() is from the interface implemented: > > publ

Re: [Vala] gtkaml 0.2.11 and 0.2.12 released

2010-10-19 Thread Frederik
Vlad Grecescu wrote: > However, the current choice of XML is based on the fact that XML only > has namespace support. YAML and JSON need a way to emulate that.. > (g-point-something is an option) Actually, I'm not suggesting JSON, but a JSON-like syntax. Of course, this requires a self-written par

[Vala] Foreach with lambda: C error

2010-10-19 Thread Treviño
I'm trying to use a lambda function as a foreach body for an HashTable: public void print_hashmap(GLib.HashTable map) { // map.foreach((k, v) => { string key = (string)k; Value val = (Value)v; print(@"Foreach k: $key => %s\n",val

Re: [Vala] Foreach with lambda: C error

2010-10-19 Thread Jürg Billeter
On Tue, 2010-10-19 at 19:32 +0200, Marco Trevisan (Treviño) wrote: > I'm trying to use a lambda function as a foreach body for an HashTable: > > public void print_hashmap(GLib.HashTable map) { > // > map.foreach((k, v) => { > string key = (string)k; > V

[Vala] warning: format not a string literal

2010-10-19 Thread Travis Beaty
Hello everyone. I am working on a little test code to learn Vala. I am getting the following warning from compiler: /home/.../ValaTest.vala.c: In function ‘vala_test_vala_test_delete_event_this’: /home/.../ValaTest.vala.c:129: warning: format not a string literal and no format arguments Here

Re: [Vala] Foreach with lambda: C error

2010-10-19 Thread Treviño
Il giorno mar, 19/10/2010 alle 19.44 +0200, Jürg Billeter ha scritto: > On Tue, 2010-10-19 at 19:32 +0200, Marco Trevisan (Treviño) wrote: > > I'm trying to use a lambda function as a foreach body for an HashTable: > > > > public void print_hashmap(GLib.HashTable map) { > > // > > map

Re: [Vala] warning: format not a string literal

2010-10-19 Thread Abderrahim Kitouni
Hi, في ث، 19-10-2010 عند 15:19 -0500 ، كتب Travis Beaty: > Hello everyone. > > I am working on a little test code to learn Vala. I am getting the > following warning from compiler: > > /home/.../ValaTest.vala.c: In function > ‘vala_test_vala_test_delete_event_this’: > > /hom

Re: [Vala] gtkaml 0.2.11 and 0.2.12 released

2010-10-19 Thread pancake
I have commited an initial work on the alternative syntax for gtkaml. I have named it 'gtkml' (simple one :P) But im open for suggestions to change it. The source is found in the gtkaml project inside the simple/ directory. It is not yet integrated with the gtkaml compiler, it is just a proof of c

Re: [Vala] Vala: Signal from POSIX

2010-10-19 Thread Ervin
Yes that is what i would do if the PrintInterface permits me to do so since the interface says: public void print_value(); note that the method is not static. Thus, calling this method using the static instance of the class Check returns an error. This is how i instantiated statically the class

Re: [Vala] Vala: Signal from POSIX

2010-10-19 Thread Ervin
Oh yeah, this works. I forgot to instantiate instance = this. :D Thanks Phil! On Wed, Oct 20, 2010 at 9:16 AM, Ervin wrote: > Yes that is what i would do if the PrintInterface permits me to do so since > the interface says: > > public void print_value(); > > note that the method is not static.