20 May
2020
20 May
'20
7:22 p.m.
Modules.Load("System", Mod); Mod := NIL;
and then Mod := NIL ???
The global pointer variable Oberon.Mod only exists because Modules.Load expects a VAR parameter of type Modules.Module. It is not used otherwise in module Oberon. The assignment Mod := NIL is just to make sure that the garbage collector doesn’t mistakenly use Oberon.Mod as a root of a “graph" to be traversed. (this assignment is - strictly speaking - not necessary, because Kernel.Mark considers any pointers < heapOrg NIL anyway, but it’s better if it doesn’t even try)
2382
Age (days ago)
2382
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andreas Pirklbauer