[Oberon] Negative integer literals in Oberon

Joerg joerg.straube at iaeth.ch
Mon Apr 27 19:03:56 CEST 2020


You are not forced to use DIV, you have the freedom to use LSR() if you like it more.

Programming is a little bit like writing a novel: every author has its style. You either like it or you don‘t😊

br
Jörg

> Am 27.04.2020 um 18:11 schrieb Skulski, Wojciech <skulski at pas.rochester.edu>:
> 
> Joerg:
> 
>> In my point of view Oberon report should slightly redefine SETs 
>> by defining its internal presentation:  define its bit numbering 
>> (= define its endianness) allow hex notation only for SETs 
>> (as alternative notation to { } ), drop hex notation 
>> for INTEGERs as I don't see a real use case for 
>> hex notation on INTEGERs yet.
> 
> How about all these MOD and DIV used for bit manipulations in 
> Oberon System? They are everywhere. Are you saying that someone
> (==NW?) should redefine both the SETs and the INTEGERs and then 
> modify most of the low level Oberon modules to eradicate 
> bit manipulations with MOD and DIV? 
> 
> This kind of redesign may be worth it, but who is going to do it? 
> You? NW? Paul? Somebody else? How about the adoption by the community?
> The story of SysDef.Mod is telling me that the entrenched coding practice
> is not going to change any easily. And now you are implying changing 
> lots of low level bit manipulation code across the entire System. Is it 
> a realistic proposition?
> 
> Wojtek
> --
> 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