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

⟦b0f24c4f3⟧ Ada Source

    Length: 2048 (0x800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test, seg_045173

Derivation

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

E3 Source Code



with Text_Io;

procedure Test is
    type Cell_Kind is (A, B);

    type Cell (Kind : Cell_Kind := A) is
        record
            W : Integer;
            case Kind is
                when A =>
                    X : Integer;
                when B =>
                    Y : Boolean;
                    Z : Integer;
            end case;
        end record;

    type Object is access Cell;

    M1, M2 : Cell;
    O : Object;
    I : Integer := 3;

begin
    Text_Io.Put_Line (Cell_Kind'Image (M1.Kind));
    M1 := (W => 32, Kind => B, Y => True, Z => 34);
    M2 := (W => 3, Kind => A, X => I);
    O := new Cell;
    --   O.all := M1;
    O.all := M2;

end Test;


E3 Meta Data

    nblk1=1
    nid=0
    hdr6=2
        [0x00] rec0=23 rec1=00 rec2=01 rec3=000
    tail 0x21746959c8649581be003 0x42a00088462060003