[Oberon] PO2013 - SD Image Tool

Tomas Kral thomas.kral at email.cz
Tue Jun 2 18:17:23 CEST 2020


   > Modules.Load("System", Mod); Mod := NIL; 
   >
   > and then Mod := NIL ??? 

> 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.

How about this,

BEGIN Init; Load("Oberon", M);
    LED(res); REPEAT UNTIL FALSE  (*only if load fails*)
END Modules.

No M := NIL assignment?

-- 
Tomas Kral <thomas.kral at email.cz>


More information about the Oberon mailing list