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

⟦dd280302c⟧ TextFile

    Length: 782 (0x30e)
    Types: TextFile
    Names: »B«

Derivation

└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Text_Io;
package body Stack_Generic is  
    I : Stack_Range := 1;
    procedure Push (A_Stack : in out Object; An_Element : in Element) is
    begin
        if not (A_Stack.The_Top = A_Stack.Size + 1) then
            A_Stack.The_Content (A_Stack.The_Top) := An_Element;
            A_Stack.The_Top := A_Stack.The_Top + 1;
        else
            Text_Io.Put_Line ("La pile est pleine");
        end if;
    end Push;


    procedure Pop (A_Stack : in out Object; An_Element : out Element) is
    begin
        if not (A_Stack.The_Top = 1) then
            An_Element := A_Stack.The_Content (A_Stack.The_Top);
            A_Stack.The_Top := A_Stack.The_Top - 1;
        else
            Text_Io.Put_Line ("La pile est vide");
        end if;
    end Pop;


end Stack_Generic;