[Oberon] Initial value of variables, where specified?

Joerg joerg.straube at iaeth.ch
Wed Feb 12 18:27:37 CET 2020


Rochus
Global module variables are initialized to zero as well; this is done in
Modules.Load()
The local variables (on the stack) are not initialized!! So their value is
undefined aka random.
Jörg

-----Original Message-----
From: Oberon <oberon-bounces at lists.inf.ethz.ch> On Behalf Of
rochus.keller at bluewin.ch
Sent: Wednesday, February 12, 2020 6:04 PM
To: oberon at lists.inf.ethz.ch
Subject: Re: [Oberon] Initial value of variables, where specified?

@ Paul Reed & Joerg Straube

Thank you very much for your feedback. I will have a look at it again. At
least zeroing the record members allocated with NEW already helped.

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