2 Jun
2020
2 Jun
'20
10:33 p.m.
Small correction to my last post on this topic, which was:
The assignment Mod := NIL (in Oberon.Mod) is just to make sure that the garbage collector doesn’t mistakenly use Oberon.Mod as a root of a “graph” to be traversed.
Actually, the garbage collector doesn’t use the pointer variable Oberon.Mod anyway, because Oberon.Mod < Kernel.heapOrg (see the code in Kernel.Mark). => I.e. it doesn’t really matter whether Oberon.Mod is set to NIL or not. I guess it’s just good housekeeping practice then.. As for Modules: There is no point of writing M := NIL after the call to Oberon.Load(“Oberon”, M) as one should never reach the point after the call to Load - as Jörg has pointed out.
2368
Age (days ago)
2368
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andreas Pirklbauer