[luatex] dofile(nil) in batchmode

Taco Hoekwater taco at elvenkind.com
Sat Mar 27 08:51:02 CET 2010

Manuel Pégourié-Gonnard wrote:
> Hi,
> As I understand it, \batchmode disables all interaction, including reading
> things from standard input. So, I wonder if dofile() without arguments shouldn't
> result in an error rather than hang forever.
> Also, in non-batch modes, it would be nice to have some indication that luatex
> is waiting for some input.
> Of course these are details, but I just lost 15 minutes trying to understand why
> one of my loops wouldn't properly terminate before I noticed the dofile() right
> before the loop. (Yeah, I know, assert() is my friend.)

See here: http://tracker.luatex.org/view.php?id=363

I have not removed the need for assert() around dofile(), because
I think this is really the programmer's job.

Best wishes,

More information about the luatex mailing list