|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: B T
Length: 751 (0x2ef)
Types: TextFile
Names: »B«
└─⟦180fe333a⟧ Bits:30000405 8mm tape, Rational 1000, SW CATALOG, 10_20_0
└─⟦180fe333a⟧ Bits:30000537 8mm tape, Rational 1000, SW Catalog 10_20_0
└─⟦5cb1d1d7f⟧ »DATA«
└─⟦3b1ee7bd8⟧
└─⟦this⟧
-- PUT AND GET 10 INTEGERS IN SEQUENCE USING X0SEQ PACKAGE
with Instrument, X0seq;
use Instrument;
procedure Sqpga2 is
package Intseq is new X0seq (50, Integer);
use Intseq;
My_Sequence : Sequence;
X : Integer;
begin
Start ("SQPGA2", "PUT_NEXT 10 ELEMENTS,RESET AND GET_NEXT THE 10 ");
for Ii in 1 .. 1000 loop
for I in 1 .. 10 loop
Put_Next (My_Sequence, I);
end loop;
Reset (My_Sequence);
for I in 1 .. 10 loop
Get_Next (My_Sequence, X);
if
I /= X
then
Comment ("GET_NEXT DOES NOT GET THE CORRECT SEQUENCE ELEMENT");
end if;
end loop;
end loop;
Stop;
end Sqpga2;