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 - metrics - download
Index: B T

⟦799f5b4db⟧ TextFile

    Length: 1255 (0x4e7)
    Types: TextFile
    Names: »B«

Derivation

└─⟦180fe333a⟧ Bits:30000405 8mm tape, Rational 1000, SW CATALOG, 10_20_0
└─⟦180fe333a⟧ Bits:30000537 8mm tape, Rational 1000, SW Catalog 10_20_0
    └─⟦5cb1d1d7f⟧ »DATA« 
        └─⟦3b1ee7bd8⟧ 
            └─⟦this⟧ 

TextFile

separate (Inquiry_Operations)

--  Prompts the user for a Yes-No response, converting the
--            answer to type BOOLEAN

function Answer (Prompt : String) return Boolean is
    Length : Natural;      -- kludge for VMS erroneous treatment of
    Response : String (1 .. 3); -- GET on single CHARACTER
    --^^  RESPONSE: STRING(1..1); -- GET on single CHARACTER
begin
    Put (Standard_Output, Prompt);
    Put (Standard_Output, " [y|n]: ");
    Get_Line (Response, Length); -- VMS kludge
    loop
        -- until RESPONSE = valid Y/N input
        case Response (1) is
            when 'Y' | 'y' =>
                return True;
            when 'N' | 'n' =>
                return False;
            when others =>
                Put_Line (Standard_Output, "... please try again.");
                Get_Line (Response, Length);  -- VMS kludge
        end case;
    end loop;
exception
    when Data_Error =>
        Put_Line (Standard_Output, "... please try again.");
        return Answer (Prompt);
    when End_Error =>
        return False;
    when others =>
        Put_Line (Standard_Output, "*** exception caught in ANSWER");
        return False;
end Answer;
--****************************************************************************