Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [indent=4]
- // valac con.gs
- def raw_input (query : string? = null) : string?
- if (query != null)
- stdout.printf ("%s\n", query)
- return stdin.read_line ()
- init
- print "Hello. I am a Genie program."
- var name = raw_input ("What's your name?")
- print "well hello there, " + name + " ! "
- print "yes Hello there , " + name + " ! "
- print "2What's your name?"
- var name2 = stdin.read_line()
- print "2Hello " + name2 + "22"
- // stdin is a GLib.FileStream so you are using valadoc.org/#!api=glib-2.0/GLib.FileStream.read_line which doesn't take any arguments
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement