[Oberon] Procedure variables and local procedures

Chris Burrows chris at cfbsoftware.com
Sun Oct 1 12:38:31 CEST 2017


> -----Original Message-----
> From: Jörg [mailto:joerg.straube at iaeth.ch]
> Sent: Sunday, 1 October 2017 8:07 PM
> To: ETH Oberon and related systems
> Cc: chris at cfbsoftware.com
> Subject: Re: [Oberon] Procedure variables and local procedures
> 
> >> Note that depending on the context / requirements the latter might
> need to be either:
> >>
> >>   b := ABS(i MOD 256);
> >>
> ABS is not needed as i MOD 256 is always positive.
> 
> 

Oops sorry - yes of course you are correct. However I would be very suspicious of code that wasn't explicitly handling the negative case.








More information about the Oberon mailing list