4 ms·
If B is called, and the language is otherwise reasonable, then it must mean that there's an A variable in the program which is not showin in the above code. Th
by kazinator 2y ago
If B is called, and the language is otherwise reasonable, then it must mean that there's an A variable in the program which is not showin in the above code.
The language must have separate namespaces for functions and variables. But in that case var B = A must be resolving A in the variable namespace; it does not refer to the function A. The local B variable is initialized from some nonlocal A variable, and neither of those are related to the A or B functions, nor have any interaction with the B () call which ignores the variable space, looking up in the function space.