From: "Cephus�" <beau@hiwaay.net>
Subject: trying to work with generic
Date: Tue, 8 Jul 2003 23:01:57 -0500
Date: 2003-07-08T23:01:57-05:00 [thread overview]
Message-ID: <vgn4spk446g005@corp.supernews.com> (raw)
Hello guys, I am getting an error here trying to compile a specification for
an array_generic package I am making for class. Can you guys tell me why it
is not allowing me to use (<>) in the indextype declaration:
WITH Ada.TEXT_IO;
GENERIC
PACKAGE array_generic IS
--declare the private type
TYPE elementType IS PRIVATE;
--declare the index type, the generic array
TYPE indexType IS (<>);
TYPE listType IS ARRAY(indexType RANGE <>) OF elementType;
PROCEDURE getData(list : OUT listType; infile : IN OUT
Ada.TEXT_IO.File_Type);
PROCEDURE Display(list : IN listType);
FUNCTION Find(list : listType; item : elementType) RETURN Boolean;
end array_generic;
next reply other threads:[~2003-07-09 4:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-09 4:01 Cephus� [this message]
2003-07-09 4:33 ` trying to work with generic Steve
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox