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

⟦e5bb0a3b6⟧ TextFile

    Length: 715 (0x2cb)
    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 Sleep (This_Animal : Object; Marker : Boolean := False) is

begin

    case Part_Of (This_Animal).Offspring_No is
        when 0 =>
            Self.Sleep (This_Animal);
        when 1 =>
            if not Marker then
                Fish.Sleep (Fish.Object (This_Animal));
            else
                Self.Sleep (This_Animal);
            end if;
        when 2 =>
            if not Marker then
                Bird.Sleep (Bird.Object (This_Animal));
            else
                Self.Sleep (This_Animal);
            end if;
        when others =>
            raise Oo_Ada_Exception.Offspring_Error;
    end case;

end Sleep;