Another clarification about local names
Posted: Thu Sep 05, 2019 9:41 pm
Hi again,
The language definition states:
(In earler times, the local declaration would have 'hidden' the name of the outer procedure.)
Do you agree? (I won't keep posting questions like this!)
Regards
The language definition states:
That would seem to rule this out as legitimate code:The use of the procedure identifier in a call within its declaration implies recursive activation of the
procedure.
Code: Select all
PROCEDURE P;
PROCEDURE P; END P; (*local*)
BEGIN P (*which P does this refer to?*)
END P;
Do you agree? (I won't keep posting questions like this!)
Regards