Hello! The following little program should run forever (until overflow, maybe)
var x = 0.0;
while true do {
x += 0.1;
writeln(x);
}
but instead it stops after some time with the following last lines of output:
1.03101e+05
1.03101e+05
1.03101e+05
1.03101e+05
uncaught SystemError: Invalid argument: internal error (while writing real(64) with path "/dev/pts/0" offset 8257534)
inf.chpl:4: thrown here
inf.chpl:4: uncaught here
C and Python versions happily go on forever. I believe this is a bug ...