|
|
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, package body Animal, package body Self, seg_03a5f8
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Bird;
with Text_Io;
package body Animal is
function Get_Os_Animal (A : Object) return Natural is
begin
return A.Os_Animal;
end Get_Os_Animal;
function Get_Os_Bird (A : Object) return Natural is
begin
return A.Os_Bird;
end Get_Os_Bird;
function Get_Os_Bop (A : Object) return Natural is
begin
return A.Os_Bop;
end Get_Os_Bop;
procedure Set_Os_Animal (A : in out Object; V : Natural) is
begin
A.Os_Animal := V;
end Set_Os_Animal;
procedure Set_Os_Bird (A : in out Object; V : Natural) is
begin
A.Os_Bird := V;
end Set_Os_Bird;
procedure Set_Os_Bop (A : in out Object; V : Natural) is
begin
A.Os_Bop := V;
end Set_Os_Bop;
package body Self is
procedure Eat (A : Object; Passe : Boolean := False) is
O : Object;
begin
Text_Io.Put_Line ("Animal eat, passe est " & Boolean'Image (Passe));
end Eat;
end Self;
procedure Eat (A : Object; Passe : Boolean := False) is
begin
case Get_Os_Animal (A) is
when 0 =>
Self.Eat (A);
when 1 =>
if not Passe then
Bird.Eat (Bird.Object (A), True);
else
Self.Eat (A);
end if;
when others =>
null;
end case;
end Eat;
package Int_Io is new Text_Io.Integer_Io (Natural);
function Get_Value (S : String) return Natural is
Ret : Natural;
begin
Text_Io.Put (S);
Int_Io.Get (Item => Ret, Width => 1);
return Ret;
end Get_Value;
end Animal;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=2a rec1=00 rec2=01 rec3=054
[0x01] rec0=20 rec1=00 rec2=02 rec3=001
tail 0x21737dadc8507798c27a3 0x42a00088462060003