[Vala] wish for Type Inference working for weak local variables

2009-08-01 Thread Łukasz Pankowski
Hello According to the Vala tutorial Finally Vala has a mechanism called Type Inference, whereby a local variable may be defined using var instead of giving a type, so long as it is unambiguous what type is meant. Type Interface works great for owned variables (for example in declaration of

Re: [Vala] wish for Type Inference working for weak local variables

2009-08-01 Thread Jiří Zárevúcky
On 08/01/2009 04:36 PM, Łukasz Pankowski wrote: Hello According to the Vala tutorial Finally Vala has a mechanism called Type Inference, whereby a local variable may be defined using var instead of giving a type, so long as it is unambiguous what type is meant. Type Interface works great for

Re: [Vala] wish for Type Inference working for weak local variables

2009-08-01 Thread Łukasz Pankowski
Jiří Zárevúcky zarevucky.j...@gmail.com writes: On 08/01/2009 04:36 PM, Łukasz Pankowski wrote: Hello According to the Vala tutorial Finally Vala has a mechanism called Type Inference, whereby a local variable may be defined using var instead of giving a type, so long as it is unambiguous

[Vala] patch for curses.vapi

2009-08-01 Thread inter
Hi the curses sample from the vala website will only work for me with the following patch cheers, lariamat diff --git a/vapi/curses.vapi b/vapi/curses.vapi index 87afe20..1a2ba36 100644 --- a/vapi/curses.vapi +++ b/vapi/curses.vapi @@ -45,9 +45,9 @@ namespace Curses { SBSS, SSSB,

Re: [Vala] ... and one for tiff.vapi

2009-08-01 Thread Frederik
inter wrote: Hi the curses sample from the vala website will only work for me with the following patch cheers, lariamat And here's a patch for 'tiff.vapi'. Otherwise the TIFF wiki sample doesn't work: error: field type `Tiff.PutUnion` is less accessible than field `Tiff.RGBAImage.put`

Re: [Vala] wish for Type Inference working for weak local variables

2009-08-01 Thread Hans Vercammen
On Sat, 2009-08-01 at 17:42 +0200, Łukasz Pankowski wrote: Another performance related usage of the weak variables (apart from one you mentioned in the bug comment #3) is that properties return weak variables so the values are copied unless assigned to the weak variable (as in the code below)

[Vala] Vala type conversion issue

2009-08-01 Thread Adam Kovari
Hello, i'm a newbie to Vala language and i really like it, unfortunatelly i came to this compile issue, which i cannot resolve only by myself. this code: Gtk.propagate_event(this, (Gdk.Event) event); translates into this C-equivalent: gtk_propagate_event ((GtkWidget*) self, (GdkEvent*)

Re: [Vala] ... and one for tiff.vapi

2009-08-01 Thread Jaap A. Haitsma
On Sat, Aug 1, 2009 at 20:10, Frederikscumm_fr...@gmx.net wrote: inter wrote: Hi the curses sample from the vala website will only work for me with the following patch cheers, lariamat And here's a patch for 'tiff.vapi'. Otherwise the TIFF wiki sample doesn't work: error: field type

Re: [Vala] patch for curses.vapi

2009-08-01 Thread Jaap A. Haitsma
Thanks, pushed to git Please use bugzilla in the future Thanks Jaap On Sat, Aug 1, 2009 at 20:03, interinterfl...@gmx.net wrote: Hi the curses sample from the vala website will only work for me with the following patch cheers, lariamat diff --git a/vapi/curses.vapi b/vapi/curses.vapi