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

⟦e49dde1f1⟧ TextFile

    Length: 447 (0x1bf)
    Types: TextFile
    Names: »B«

Derivation

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

TextFile

with Bird;
with Fish;
with Oo_Ada_Exception;

separate (Animal)

procedure Eat (This_Animal : Object) is
begin
    case Part_Of (This_Animal).Offspring_No is
        when 0 =>
            Self.Eat (This_Animal);
        when 1 =>
            Fish.Eat (Fish.Object (This_Animal));
        when 2 =>
            Bird.Eat (Bird.Object (This_Animal));
        when others =>
            raise Oo_Ada_Exception.Offspring_Error;
    end case;
end Eat;