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

⟦c8332c95a⟧ TextFile

    Length: 1050 (0x41a)
    Types: TextFile
    Names: »B«

Derivation

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

TextFile

with Tomato;

separate (Vegetable)

procedure Delete (This_Object : in out Object; Marker : Boolean := False) is

    Parent_1 : Plant.Object := Plant.Part_Of (Get_Origin (This_Object));
    Child_1 : Tomato.Object;

begin
    case This_Object.Offspring is

        when 0 =>
            Free (This_Object);  
            Log_Report.Trace
               ("vegetable delete :  no sub-class, free state and call plant delete");
            Plant.Delete (Parent_1, True);

        when 1 =>  
            if not Marker then
                Log_Report.Trace ("vegetable delete : call tomato delete");
                Child_1 := Tomato.Protected_Conv (Get_Heir (This_Object));
                Tomato.Delete (Child_1);
            else  
                Free (This_Object);  
                Log_Report.Trace
                   ("vegetable delete :  free state and call plant delete");
                Plant.Delete (Parent_1, True);
            end if;

        when others =>
            raise Oo_Ada_Exception.Offspring_Error;
    end case;
end Delete;