[Oberon] Procedure variables and local procedures

Richard Hable informujo at aon.at
Fri Sep 29 21:44:54 CEST 2017


On 2017-09-29 20:51, chris wrote:

> I would be happier if local procedures would be removed at all. What 
> use is left there other than hiding their name from the global scope?

Local procedures can also be used to allow recursive procedure calls
without forward declarations, as in the following example for endless
recursion:

PROCEDURE A;
	PROCEDURE B;
	BEGIN
		A;
	END B;
BEGIN
	B;
END A;

Richard


More information about the Oberon mailing list