DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦233b8d27f⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Case_Statements, seg_0045ff

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



procedure Case_Statements is

    type Enum is (A, B, C, D, E, F, G, H, I, J, K, L);

    An_Enum : Enum;

    subtype En is Enum range C .. G;

    An_En : En;

    subtype Ints is Integer range 1 .. 10;
    An_Int : Ints;
    An     : Integer;
begin
    case An_Int is
        when 3 =>
            [statement]
        when 7 =>
            [statement]
        when 8 .. 9 =>
            [statement]
        when others =>
            [statement]
    end case;

    -- case An is
    --     when 3 =>
    --         [statement]
    --     when 7 =>
    --         [statement]
    --     when 8 .. 9 =>
    --         [statement]
    --     when others =>
    --         [statement]
    -- end case;
    --
    case An_Enum is
        when B | A | D =>
            [statement]
        when F | H .. K =>
            [statement]
        when others =>
            [statement]
    end case;

    case An_Enum is
        when En =>
            [statement]
        when others =>
            [statement]
    end case;

    case An_En is
        when D | G =>
            [statement]
        when others =>
            [statement]
    end case;

end Case_Statements;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=2f rec1=00 rec2=01 rec3=018
        [0x01] rec0=0f rec1=00 rec2=02 rec3=000
    tail 0x215004092815c65969383 0x42a00088462061e03