Search found 3 matches

by Eugene Temirgaleev
Fri Sep 16, 2011 5:29 am
Forum: Oberon Language
Topic: Convert INTEGER to SET
Replies: 4
Views: 25820

Re: Convert INTEGER to SET

Control register is presents by a 32 bits processor word but structurally it is a packed record with logic (BOOLEAN bit) and numeric (CARDINAL 2, 4 or generally N bit width) fields. ... I was need method to produce data of this kind. word := ORD(setOfBooleanFlags) + LSL(cardinalField1, field1Pos) +...
by Eugene Temirgaleev
Wed Sep 14, 2011 12:03 pm
Forum: Oberon Language
Topic: Convert INTEGER to SET
Replies: 4
Views: 25820

Re: Convert INTEGER to SET

The note SET: A neglected data type, and its compilation for the ARM by Prof Wirth may be helpful for the understanding of type SET.
by Eugene Temirgaleev
Wed Sep 14, 2011 11:47 am
Forum: Oberon Language
Topic: Exit mid-loop
Replies: 2
Views: 16425

Re: Exit mid-loop

What is the 'correct' way to exit a REPEAT...UNTIL loop? The truly correct way is try to express your algorithm in the form which isn't require mid-exit loops. This is possible & lead to more clearly programs in most cases. Prof Wirth removed LOOP/EXIT statements in the Revised Oberon (Oberon-07) t...