Re: [Vala] array of strings bug ?



This bug exist for some time
http://bugzilla.gnome.org/show_bug.cgi?id=570821
Regards,
lariamat


Am Freitag, den 10.04.2009, 12:45 +0200 schrieb Roberto Majadas:
Hi people :

Is this a vala bug ?

public class ProofClass {

        public string[] str = {} ;

        public ProofClass () {
                stdout.printf ("init proofclass\n");
        }
       
        public static int main (string[] args) {
               
                var p = new ProofClass();
                p.str += "hello";
                p.str += "hello2";
               
                foreach (string str in p.str){
                        stdout.printf ("--> %s\n", str);   
                }

                return 0;
        }
       
}

telemaco kara:/tmp$ LANG=C valac -o str.exe string-bug.vala
/tmp/string-bug.c: In function 'proofclass_main':
/tmp/string-bug.c:99: error: 'ProofClass' has no member named 'str_size'
/tmp/string-bug.c:100: error: 'ProofClass' has no member named 'str_size'
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)


telemaco
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]