Phix Question
- Posted by lgregg May 15, 2021
- 1446 views
I was trying out Phix on Linux and ran the following from the phix documentation
object line
puts(1, "What is your name?\n")
line = gets(0)
line = line[1..length(line)-1]
puts(1, '\n')
puts(1, line & " is a nice name.\n")
output to screen
What is your name? Larry Larry Larry is a nice name.
- the first Larry I typed
- why is gets(0) typing Larry to the screen?
- third Larry is expected

