Read-only forum archive

Premature end of file

Premature end of file

John Perry · Mon Oct 18, 2010 1:29 pm

I just received the following error message:
Quote:
? premature end of file while reading {...}
Actually, I received three copies of the message, and now Singular seems to have hung: I get a dot at the beginning of a line, and can't do anything productive, except quit. Oddly, Singular didn't complain when loading the library, only when I tried to run something.

I think I know what premature end of file means, and I don't doubt that it's an error on my part. Still, I don't understand why I'm getting this. Is it a misplaced brace?

Re: Premature end of file

John Perry · Mon Oct 18, 2010 1:34 pm

Wow. It was a misplaced brace in a comment. I had,
Code:
// if (size(new_cp[1]) == 2) {
and Singular was confused by that. Is this a bug, or expected behavior?