DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦57cf796b3⟧ TextFile

    Length: 1877 (0x755)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦e24fb53b7⟧ 
            └─⟦this⟧ 

TextFile

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;