On 2018-02-07 12:34, August Karlstrom wrote:
I find this strange, as the compiler should only search the (strictly)
local and the global scope for identifier declarations.
NW's PO2013 compiler apparently only disallows access to *variables*
declared in intermediate scopes. I was under the impression that no
objects (constants, types, variables or procedures) declared in an
intermediate scope is accessible. The language report says:
"In addition to its formal parameters and locally declared objects, the
objects declared globally are also visible in the procedure."
It doesn't say that non-variable objects from intermediate scopes are
visible in a procedure.
-- August
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)