DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ B T ┃
Length: 914 (0x392) Types: TextFile Names: »B«
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11 └─ ⟦129cab021⟧ »DATA« └─⟦this⟧
with Text_Io; package body Class_Old_Printer is procedure Create is begin Position := 0; end Create; procedure Go_Ahead (Number : in Integer) is begin if Number > 0 then Position := Position + Number; end if; end Go_Ahead; procedure Go_Back (Number : in Integer) is begin if Number > 0 then Position := Position - Number; end if; if Position < 0 then Position := 0; end if; end Go_Back; procedure Put (The_String : String) is Tabulation : String (1 .. Position) := (1 .. Position => ' '); begin Text_Io.Put (Tabulation & The_String); Text_Io.New_Line; end Put; procedure New_Line (Number : Integer := 1) is begin for I in 1 .. Number loop Text_Io.New_Line; end loop; end New_Line; end Class_Old_Printer;