Limit on Nesting Units or Include Files

Product Version(s): 3.3x
Operating System:   MS-DOS
Flags: ENDUSER | TAR53861 docerr
Last Modified: 23-FEB-1988    ArticleIdent: Q11582

Problem:
   The manual does not say that there is a limit on the number of
units or $include files one can nest in Pascal.
   If you nest units six levels deep, the compiler will give a warning
118: too many file levels, followed by error 366: unit identifier
expected skip to. From the sample program, if you nest up to five
levels the compiler will not give the warning message. It seems that
there is a limit on how many levels one can do.

Response:
   There is an undocumented limit of five levels of nesting for units
and include files. This documentation omission will be corrected in a
future release.
