[Oberon] Understanding ORS.Mod.txt

Chris Burrows chris at cfbsoftware.com
Mon Jun 13 06:13:51 CEST 2016


> -----Original Message-----
> From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of
> John R. Strohm
> Sent: Monday, 13 June 2016 12:48 PM
> To: ETH Oberon and related systems
> Subject: Re: [Oberon] Understanding ORS.Mod.txt
> 
> Ten(n) calculates 10**n, using optimized continued multiplication.
> 
> You are confusing the local variable x inside function Ten with the
> variable x in the caller of Ten.
> 

OK - I get it now. However, I can see why Srinivas was confused.

@Srinivas: If e = 5 then the values of e are 5, 2, 1 so e does become odd a
second time.




More information about the Oberon mailing list