|
|
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 - metrics - downloadIndex: B T
Length: 925 (0x39d)
Types: TextFile
Names: »B«
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
└─⟦129cab021⟧ »DATA«
└─⟦this⟧
with Unchecked_Deallocation;
package body Root is
procedure Free is new Unchecked_Deallocation (State, Object);
function Create (Offspring_No : Natural) return Object is
An_Object : Object;
begin
An_Object := new State;
An_Object.Offspring_No := Offspring_No;
An_Object.Self := An_Object;
An_Object.Heir := An_Object;
return An_Object;
end Create;
procedure Delete (This_Appli : in out Object) is
begin
-- Attention verifier si toutes les variables du state doivent
-- etre detruites au prealable (relation HAS)
Free (This_Appli);
end Delete;
procedure Set_Heir (This_Appli : in out Object; Heir : Object) is
begin
This_Appli.Heir := Heir;
end Set_Heir;
function Get_Heir (This_Appli : Object) return Object is
begin
return This_Appli.Heir;
end Get_Heir;
end Root;