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

2009-08-03 Thread Jiří Zárevúcky
On 08/03/2009 12:34 AM, Jürg Billeter wrote: On Sun, 2009-08-02 at 16:20 +0200, Jiří Zárevúcky wrote: Yet, I'm kinda wondering about one thing. It seems to me some people were, are and will be wanting inference for weak variables, regardless the real benefits may be negligible. Even if it

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

2009-08-02 Thread Jiří Zárevúcky
On 08/01/2009 08:14 PM, Hans Vercammen wrote: Hi, On Sat, 2009-08-01 at 16:53 +0200, Jiří Zárevúcky wrote: On 08/01/2009 04:36 PM, Łukasz Pankowski wrote: Finally Vala has a mechanism called Type Inference, whereby a local variable may be defined using var instead of giving a type,

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

2009-08-02 Thread Jürg Billeter
On Sun, 2009-08-02 at 16:20 +0200, Jiří Zárevúcky wrote: Yet, I'm kinda wondering about one thing. It seems to me some people were, are and will be wanting inference for weak variables, regardless the real benefits may be negligible. Even if it were just to have nice C code where the

[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

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)