|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_Compteur, seg_05c264
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Compteur;
with Text_Io;
procedure Test_Compteur is
package Reservoir is new Compteur (Maximum => 45);
procedure Remplir (Le_Reservoir : in out Reservoir.Object; Avec : Positive)
renames Reservoir.Augmenter;
procedure Siphonner (De : in out Reservoir.Object; La_Quantite : Positive)
renames Reservoir.Diminuer;
function La_Jauge (De : in Reservoir.Object) return Integer
renames Reservoir.Lire;
Ma_205 : Reservoir.Object;
Une_Clio : Reservoir.Object;
begin
Remplir (Le_Reservoir => Une_Clio, Avec => 15);
Siphonner (De => Une_Clio, La_Quantite => 10);
Remplir (Le_Reservoir => Ma_205, Avec => 10);
Text_Io.Put ("Il reste: ");
Text_Io.Put (Integer'Image (La_Jauge (De => Une_Clio)));
Text_Io.Put_Line (" litres dans la clio");
Text_Io.Put ("Il y a : ");
Text_Io.Put (Integer'Image (La_Jauge (De => Ma_205)));
Text_Io.Put_Line (" litres dans ma 205");
Siphonner (De => Une_Clio, La_Quantite => 10);
exception
when Reservoir.Epuisement =>
Text_Io.Put_Line ("Tu essayes d'en prendre de trop!!!");
end Test_Compteur;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=18 rec1=00 rec2=01 rec3=040
[0x01] rec0=05 rec1=00 rec2=02 rec3=001
tail 0x2176b9282895c3d31a93e 0x42a00088462060003