>> 1. check for "stack underflow"; and/or > > such things are dealt with
By assert, I mean: assert(inputstack[#inputstack], "Input stack should never be empty when toppath() is called.") >> 2. check if the file "somefile.tex" exists in the directory being >> popped from the stack. >> Just for "bug catching"... > > it all happens before a file is loaded so the normal reporting is applied I meant an "assert()" inside toppath() and cleanpath(). But, as you said, this kind of "assertion" belongs to a "test case". André Caldas. ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________