[Oberon] Bit manipulation in Oberon-07

Skulski, Wojciech skulski at pas.rochester.edu
Wed Oct 24 00:34:19 CEST 2018


All:

  my students want to know how to manipulate bits in an integer variable. I said "use SETs". We looked how to convert an integer to a SET and vice versa. We found that the way from a SET to INTEGER is via ORD. What is the other way from an INTEGER to SET without using SYSTEM.VAL?

Component Pascal defined a standard procedure BITS. Is there any BITS-equivalent in Oberon-07?

Thank you,
Wojtek


More information about the Oberon mailing list