From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cd9275d04b04fb6e,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-08 21:01:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Cephus�" Newsgroups: comp.lang.ada Subject: trying to work with generic Date: Tue, 8 Jul 2003 23:01:57 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:40135 Date: 2003-07-08T23:01:57-05:00 List-Id: 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;