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

⟦ea25ae7e1⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Try_Slot, seg_03a359, seg_03b927, seg_03c09f, seg_03c50a, seg_03c6b1, seg_03c9e6, seg_04a9bd, seg_04b42b

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 
└─⟦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 Slot;
with Output_Stream;

use Slot;  
procedure Try_Slot is  
    On_Screen          : Output_Stream.Object := Output_Stream.Standard_Output;
    The_Undefined_Slot : Slot.Object          := Slot.Undefined_Value;
    The_Integer_Slot   : Slot.Object          := Slot.Value (234);

    use Slot.Operators;

begin
    Output_Stream.Put ("The_Integer_Slot: ", On_Screen);
    Put (The_Integer_Slot, On_Screen);
    Output_Stream.New_Line (On_Screen);
    Output_Stream.Put ("The_Undefined_Slot: ", On_Screen);
    Put (The_Undefined_Slot, On_Screen);
    Output_Stream.New_Line (On_Screen);

    The_Undefined_Slot := The_Integer_Slot;

    Output_Stream.Put ("The_Undefined_Slot: ", On_Screen);
    Put (The_Undefined_Slot, On_Screen);
    Output_Stream.New_Line (On_Screen);

    Make_Undefined (The_Undefined_Slot);

    Output_Stream.Put ("The_Undefined_Slot: ", On_Screen);
    Put (The_Undefined_Slot, On_Screen);
    Output_Stream.New_Line (On_Screen);

    if Is_Undefined (The_Undefined_Slot) then
        Output_Stream.Put ("The_Undefined_Slot is undefined", On_Screen);
        Output_Stream.New_Line (On_Screen);  
    else
        Output_Stream.Put ("The_Undefined_Slot is notundefined", On_Screen);
        Output_Stream.New_Line (On_Screen);
    end if;

    The_Undefined_Slot := The_Integer_Slot * Value (2);

    Output_Stream.Put ("The_Undefined_Slot: ", On_Screen);
    Put (The_Undefined_Slot, On_Screen);
    Output_Stream.New_Line (On_Screen);

    The_Undefined_Slot := The_Integer_Slot * Undefined_Value;

    Output_Stream.Put ("The_Undefined_Slot: ", On_Screen);
    Put (The_Undefined_Slot, On_Screen);
    Output_Stream.New_Line (On_Screen);
exception
    when Illegal_Operation =>
        Output_Stream.Put_Line ("Illegal_Operation", On_Screen);
    when Typing_Error =>
        Output_Stream.Put_Line ("typing_error", On_Screen);
end Try_Slot;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1f rec1=00 rec2=01 rec3=042
        [0x01] rec0=1b rec1=00 rec2=02 rec3=001
    tail 0x21737786685017b433c75 0x42a00088462063c03