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

⟦3b8ebd463⟧ TextFile

    Length: 917 (0x395)
    Types: TextFile
    Names: »B«

Derivation

└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13
    └─ ⟦124ff5788⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
    └─ ⟦6f12a12be⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦e24fb53b7⟧ 
            └─⟦this⟧ 

TextFile

package body Constant_String is
    Max_Strings : constant := 1000;

    type Access_String is access String;

    subtype Valid_Object is Object range 0 .. Max_Strings;

    The_Strings     : array (Valid_Object) of Access_String;
    The_Last_String : Object := 0;

    function Make (For_String : String) return Object is
    begin
        if The_Last_String /= Max_Strings then
            The_Last_String               := The_Last_String + 1;
            The_Strings (The_Last_String) := new String'(For_String);  
            return The_Last_String;
        else
            raise Overflow;
        end if;
    end Make;


    function Image (Of_Object : Object) return String is
    begin
        return The_Strings (Of_Object).all;
    exception
        when Constraint_Error =>
            raise Illegal_Object;
    end Image;

begin
    The_Strings (The_Last_String) := new String'("");
end Constant_String;