ravikumar10 / genyris

Automatically exported from code.google.com/p/genyris
Other
0 stars 0 forks source link

Process exits when ReaderInStream sees EOF #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
# in test-process.g
> var x (reader(.getline))
: 

What do you see?

EOF # SimpleSymbol 
$ 

process exited.

What is the expected output?

Original issue reported on code.google.com by birchb1...@gmail.com on 13 Apr 2013 at 11:35

GoogleCodeExporter commented 9 years ago
Thats the interpreter - when an expression returns EOF to the top-level it 
quits. Naturally. e.g. below is the expected behaviour.

> stdin(.getline)
: > 
'' # String 
EOF # SimpleSymbol 

Or even > EOF
: 
EOF # SimpleSymbol 

$

Original comment by birchb1...@gmail.com on 13 Apr 2013 at 11:54