Re: [Vala] Can fixed-size arrays be initialized?

2011-03-03 Thread Treviño
Il giorno mer, 02/03/2011 alle 20.33 +, Graham Whelan ha scritto: int main (string[] args) { int a[5] = {1, 2, 3, 4, 5}; return 0; } You should use: int[] a = {1, 2, 3, 4, 5}; Valac doesn't handle the error correctly...

Re: [Vala] Can fixed-size arrays be initialized?

2011-03-03 Thread Treviño
Il giorno gio, 03/03/2011 alle 16.54 +0100, Marco Trevisan (Treviño) ha scritto: Il giorno mer, 02/03/2011 alle 20.33 +, Graham Whelan ha scritto: int main (string[] args) { int a[5] = {1, 2, 3, 4, 5}; return 0; } You should use: int[] a = {1, 2, 3, 4, 5};

Re: [Vala] Can fixed-size arrays be initialized?

2011-03-03 Thread Graham Whelan
On 3 March 2011 15:57, Marco Trevisan (Treviño) m...@3v1n0.net wrote: Il giorno gio, 03/03/2011 alle 16.54 +0100, Marco Trevisan (Treviño) ha scritto: Il giorno mer, 02/03/2011 alle 20.33 +, Graham Whelan ha scritto: int main (string[] args) {         int a[5] = {1, 2, 3, 4, 5};      

Re: [Vala] Can fixed-size arrays be initialized?

2011-03-03 Thread Treviño
Il giorno gio, 03/03/2011 alle 17.34 +, Graham Whelan ha scritto: dynamic array syntax: const int[] a = {1, 2, 3}; /* compiles*/ This is not dynamic at all! It's constant; look at the generated C code! int[] a = {1, 2, 3}; /* compiles */ fixed-size array syntax: const a[] = {1,

[Vala] problem with Object.get_class()

2011-03-03 Thread Maga Abdurakhmanov
Hi guys, can't use get_class() method to access Object properties at runtime, what's wrong here: public class Test1 : GLib.Object { public string string_value { get; set; default = yahoo!; } public int int_value { get; set; default = 123456; } } public class TestObjectClass : GLib.Object {

Re: [Vala] problem with Object.get_class()

2011-03-03 Thread Maga Abdurakhmanov
It works when changed the line: ObjectClass objectClass = t1.get_class(); to: ObjectClass objectClass = (ObjectClass)t; On Thu, Mar 3, 2011 at 10:54 PM, Maga Abdurakhmanov maq...@gmail.comwrote: Hi guys, can't use get_class() method to access Object properties at runtime, what's wrong

Re: [Vala] Can fixed-size arrays be initialized?

2011-03-03 Thread Graham Whelan
On 3 Mar 2011, at 18:05, Marco Trevisan (Treviño) m...@3v1n0.net wrote: Il giorno gio, 03/03/2011 alle 17.34 +, Graham Whelan ha scritto: dynamic array syntax: const int[] a = {1, 2, 3}; /* compiles*/ This is not dynamic at all! It's constant; look at the generated C code! Yes, you are

Re: [Vala] Vala 0.11.6 How do I copy a file using GInputStream and GOutputStream?

2011-03-03 Thread Graham Whelan
On 2 March 2011 15:10, pancake panc...@youterm.com wrote: Yes. It is a bug. Please report it :) Okay created bug #643824. https://bugzilla.gnome.org/show_bug.cgi?id=643824 ___ vala-list mailing list vala-list@gnome.org