[Oberon] PO2013 - SD Image Tool

Joerg joerg.straube at iaeth.ch
Tue Jun 2 19:38:54 CEST 2020


You will/should NEVER reach the code after Load(„Oberon“, M) as the last statement of Oberon calls the main loop (REPEAT ... UNTIL FALSE) without any exit

Jörg

> Am 02.06.2020 um 18:18 schrieb Tomas Kral <thomas.kral at email.cz>:
> 
> 
>> 
>> 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>
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon



More information about the Oberon mailing list