[Oberon] PO2013 - SD Image Tool

Joerg joerg.straube at iaeth.ch
Thu May 21 08:21:39 CEST 2020


Tomas

It‘s true that Load() is recursive. Every recursive procedure contains some checks to see whether recursion is needed or not:

PROCEDURE factorial(x: INTEGER): INTEGER;
  BEGIN
    IF x<=1 THEN x :=1 ELSE x:= x*factorial(x-1)
    END
  RETURN x END facrorial;

Try to understand the checks in Load() and see why it always terminates.

Chapter 6 might help https://inf.ethz.ch/personal/wirth/ProjectOberon/PO.System.pdf

br
Jörg

> Am 21.05.2020 um 08:00 schrieb Tomas Kral <thomas.kral at email.cz>:
> 
> On Wed, 20 May 2020 19:00:13 +0200
> Tomas Kral <thomas.kral at email.cz> wrote:
> 
>> MenuViewers, TextFrames
>> 
>> But they both depend back on Oberon, which is not loaded, but to be
>> loaded.
> 
> Modules.Load recursion, how can it possibly be terminated?
> 
> Oberon -> MenuViewers -> Oberon ....
> 
> -- 
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20200521/d6107e35/attachment.html>


More information about the Oberon mailing list