nojb
2010-08-09 05:40:54 UTC
Hello,
More questions about he Oberon-07 report:
1. Consider:
MODULE M;
VAR
P : PROCEDURE;
Q : PROCEDURE;
BEGIN
P := Q
END M.
I guess this means that P becomes Q, but just syntactically it looks
like we are actually calling Q (never mind is undefined in this
particular program).
This means that the meaning of "Q" depends on what "P" is?
2. Since by Oberon-07 report the only allowed variable access is
global and strictly local, why are function pointers
restricted to global procedures? It would seem that there would be
absolutely no problem implementing function pointers to
nested procedures as well, since there is no need to carry non-local
variables along...
Thanks!
N
More questions about he Oberon-07 report:
1. Consider:
MODULE M;
VAR
P : PROCEDURE;
Q : PROCEDURE;
BEGIN
P := Q
END M.
I guess this means that P becomes Q, but just syntactically it looks
like we are actually calling Q (never mind is undefined in this
particular program).
This means that the meaning of "Q" depends on what "P" is?
2. Since by Oberon-07 report the only allowed variable access is
global and strictly local, why are function pointers
restricted to global procedures? It would seem that there would be
absolutely no problem implementing function pointers to
nested procedures as well, since there is no need to carry non-local
variables along...
Thanks!
N