Coincidentally, the errors were the result of an attempt to access an
instance member from a static method.

On Wed, Jan 18, 2012 at 11:53 AM, Geoff Johnson <geoff....@gmail.com> wrote:

> That results in the same error as when i is declared as an int.
>
> On Wed, Jan 18, 2012 at 11:33 AM, Abderrahim Kitouni 
> <a.kito...@gmail.com>wrote:
>
>> في ر، 18-01-2012 عند 11:18 -0800 ، كتب Geoff Johnson:
>> > In the class right before the constructor I've declared the property
>> using:
>> >
>> > public int n_part { get; set; default=0; }
>> > and as mentioned, I'm able to use it without error inside of the
>> > constructor.
>>
>> I'm talking about "i", not the property. You wrote:
>> >         >         for (i = 0; i < n_part; i++) {
>>
>> shouldn't that be:
>>
>> for (var i = 0; i < n_part; i++) {
>>
>>
>
_______________________________________________
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to