[Vala] "Hello World", what is my mistake?



Greets,
I am compiling the hello.gs example @ https://live.gnome.org/Genie#Hello_World 
Code:
init 
        print "Hello_World"

Pls, what am i doing wrong?
See error msg below:
C:\vala-0.12\vmVala>hello.gs.bat  1>hello.gs.bat.out.txt
hello.gs:2.9-2.13: error: syntax error, expected declaration  but got `print' wi
th previous end of line
        print "Hello_World"
        ^^^^^

Yes, Last line  of code is “new line” symbol.  
Can anyone give me an example of simple *.gs code that works?
Thanks...Vernon


- www.vmars316.com 
"All things in moderation, except for love and forgiveness."


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