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

⟦90b748f5a⟧ TextFile

    Length: 1035 (0x40b)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Leaf;

separate (Plant)

function Create (Offspring : Natural := 0; Nb_Leaves : Natural := 1)
                return Object is
    This_Parent_Object : Root.Object := Root.Create (1);
    This_Object : Object := new State;
    A_List_Of_Leaves : Ref_Of_Leaves := Nil;  
    A_Leaf : Leaf.Object;
begin  
    This_Object.Offspring := Offspring;  
    Set_Origin (This_Object, This_Parent_Object);
    Root.Set_Heir (This_Parent_Object, Root_View_Of (This_Object));

    Log_Report.Trace ("Creation HAS relation with leaf");

    Init (A_List_Of_Leaves);

    for I in 1 .. Nb_Leaves loop
        A_Leaf := Leaf.Create;
        Insert (Element => A_Leaf, In_List => A_List_Of_Leaves);  
    end loop;

    Log_Report.Trace (Natural'Image (Arg_Number (A_List_Of_Leaves)) &
                      " leaves are (leaf is) born");

    Set_Leaves (This_Object, A_List_Of_Leaves);
    Log_Report.Trace ("A plant is born  with offspring " &
                      Natural'Image (This_Object.Offspring));
    return This_Object;
end Create;