Re: [Vala] char variables problem



What vala version are you using?

It compiles and runs fine on my machine.
Valac 0.11.2
Ubuntu 10.10
GCC 4.4.5/

Navi

-------------

On 02/12/10 23:06, Sepehr Aryani wrote:
Hi guys.
what is the problem with this code?

public void main(){
    char  ch1 = 'a';
    char? ch2 = 'b';


    stdout.printf("%c\n", ch1);
    stdout.printf("%c\n", ch2);
    stdout.printf("%s\n", ch1.to_string());
    stdout.printf("%s\n", ch2.to_string());
}

when I assign a value to ch1 and ch2, they remain empty and nothing is
printed in output.
Why.......




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


-- 
Navdeep Singh Sidhu
[navdeepsinghsidhu <at> gmail.com]



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