Phix Question

new topic     » topic index » view thread      » older message » newer message

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
new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu