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,FREEMAIL_FROM, T_HK_NAME_FM_MR_MRS autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,131f3be06911dc7e,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-02 15:15:45 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: ratsonjaniv@hotmail.com (Mr. J.) Newsgroups: comp.lang.ada Subject: Generic Package Date: 2 Dec 2003 15:15:45 -0800 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 82.166.171.154 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1070406945 6017 127.0.0.1 (2 Dec 2003 23:15:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 2 Dec 2003 23:15:45 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:3079 Date: 2003-12-02T15:15:45-08:00 List-Id: Hi, I have this code : ********************************************************************* generic type Language is array (Positive range<>) of Character; type States is array (Positive range <>) of Integer; package Automat_Producer is type StatesFunctions is array(Character,Integer) of Integer; procedure Init(Q0:Integer); procedure Change_State(C:Character); function Is_Final_State return Boolean; private Statesarr: Statesfunctions; Currentstate : Integer; FinalStates : States; end Automat_Producer; ********************************************************************* I have few Questions: How and when do I set the sizes of the generic types arrays? The compiler need to know the size of the FinalStates:States member, I will know it only during run-time, How do I do it ? I think I need somthing similiar to C++'s Constructor. 10x a lot, Janiv.