next | previous | forward | backward | up | top | index | toc | Macaulay2 web site

loadDepth -- the load depth

Description

loadDepth = i -- sets the load depth to i, which should be a small integer, returning the old value.

During the backtrace after an error message, a position in interpreted code is displayed only if the load depth was at least as large at the time the code was parsed as the error depth is now. The load depth is set to 0 initially, is set to 1 when the files of the Core package are being loaded, is set to 2 while loading a package with the debuggingMode option set to false, and is set to 3 for user input.

The value of loadDepth active when code is parsed is referred to later when error messages are being handled: see errorDepth.

Caveat

The user should not attempt to adjust the value of loadDepth.

For the programmer

The object loadDepth is an integer.