|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_Constrained_Control, seg_005e43
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Control; with Text_Io; procedure Test_Constrained_Control is The_Line : String (1 .. 80); The_Length : Natural; package Level is new Control (Minimum => 0, Maximum => 15, Default => 0); The_Value : Level.Object; begin Level.Set (The_Value, To_Mode => Level.Constrained); Done: loop Text_Io.Get_Line (The_Line, The_Length); for I in 1 .. The_Length loop begin case The_Line (I) is when '+' => Level.Up (The_Value); when '-' => Level.Down (The_Value); when '?' => Level.Put (The_Value); when 'q' => exit Done; when others => null; end case; exception when Level.Overflow | Level.Underflow => Text_Io.Put_Line ("there is a bug !!!"); end; end loop; end loop Done; end Test_Constrained_Control;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=1d rec1=00 rec2=01 rec3=018 [0x01] rec0=09 rec1=00 rec2=02 rec3=000 tail 0x217016d2281ba72d6a1aa 0x42a00088462063c03