[fpc-pascal] Variable scope concurrency
M.Santhoff at t-online.de
Thu Oct 14 05:20:12 CEST 2004
I wonder what happens, if there are two variables with exactly the same
name in scope, when one is in the interface part of one unit as a global
and the other is in the implementation part of the crrent unit.
When the variable name is adressed inside a procedure:
mydoubledvar := 0;
Which one wins?
Is there a syntactic definition in the pascal language for this case and
how does fpc handle it?
My feeling tells me the "nearer" one should, in unit one in the
More information about the fpc-pascal