DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

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

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦ae7542e82⟧ Ada Source

    Length: 4096 (0x1000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Try_S_List, seg_05470e

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with S_Generic_List;
with Text_Io;
use Text_Io;

procedure Try_S_List is  
    package Liste is new S_Generic_List (Natural);
    L : Liste.S_List;
    Result : Boolean;
    Iter : Liste.S_Iterator;
begin
    L := Liste.Make (2, L);
    L := Liste.Make (3, L);
    L := Liste.Make (5, L);
    Liste.Init (Iter, L);
    while (Liste.Done (Iter) /= True) loop
        Put_Line (Natural'Image (Liste.Value (Iter)));
        --exit when Liste.Value (Iter) = 10;
        --exit when Liste.Done (Iter);
        Liste.Next (Iter);

    end loop;
    if Liste.Is_Empty (L) then
        Put_Line ("il me dir que la liste est vide !!!!");
    end if;

    Result := Liste.Is_In (10, L);
    Text_Io.Put_Line ("result finish...");
    if Result then
        Put_Line ("trouve..........10");
    else
        Put_Line ("pastrouve 10");
    end if;
    Result := Liste.Is_In (5, L);
    if Result then
        Text_Io.Put_Line ("j ai trouve 5 c est bon");   end if;
    while Result loop
        Result := Liste.Is_In_Next (5, L);
        if Result then
            Put_Line ("trouve 5 le 2eme");
        else
            Put_Line ("pastrouve 5 le 2eme ");
        end if;
    end loop;  
    Put_Line ("yo");
    Liste.Modify (5, 9, L);
    Result := Liste.Is_In (5, L);
    if Result then
        Text_Io.Put_Line ("j ai trouve 5 c est pas bon");
    end if;  
    while Result loop
        Result := Liste.Is_In_Next (5, L);
        if Result then
            Put_Line ("trouve 5 le 2eme");

        end if;
    end loop;

    Result := Liste.Is_In (9, L);
    if Result then  
        Text_Io.Put_Line ("j ai trouve 9 c est bon");
    end if;
    while Result loop
        Result := Liste.Is_In_Next (9, L);
        if Result then
            Put_Line ("trouve 9");

        end if;
        Liste.Init (Iter => Iter, L => L);

        while (Liste.Done (Iter) /= True) loop
            Put_Line (Natural'Image (Liste.Value (Iter)));
            --exit when Liste.Value (Iter) = 10;
            --exit when Liste.Done (Iter);
            Liste.Next (Iter);

        end loop;



        Liste.Put_First (9, L);
        Liste.Init (Iter => Iter, L => L);
        while (Liste.Done (Iter) /= True) loop
            Put_Line (Natural'Image (Liste.Value (Iter)));
            --exit when Liste.Value (Iter) = 10;
            --exit when Liste.Done (Iter);
            Liste.Next (Iter);

        end loop;


    end loop;
    Liste.Free (L);

end Try_S_List;

E3 Meta Data

    nblk1=3
    nid=0
    hdr6=6
        [0x00] rec0=25 rec1=00 rec2=01 rec3=002
        [0x01] rec0=24 rec1=00 rec2=02 rec3=02c
        [0x02] rec0=18 rec1=00 rec2=03 rec3=000
    tail 0x2175d86b487b8851c917c 0x42a00088462060003