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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ac6e650e2adbc584 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-21 17:41:20 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-xfer.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!news-east.rr.com!chnws02.ne.ipsvc.net!cyclone.ne.ipsvc.net!24.128.8.70!typhoon.ne.ipsvc.net.POSTED!not-for-mail From: "Jeffrey Creem" Newsgroups: comp.lang.ada References: <3ceaafcd@news.comindico.com.au> Subject: Re: Data Structures X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Wed, 22 May 2002 00:37:10 GMT NNTP-Posting-Host: 66.31.5.146 X-Complaints-To: abuse@attbi.com X-Trace: typhoon.ne.ipsvc.net 1022027830 66.31.5.146 (Tue, 21 May 2002 20:37:10 EDT) NNTP-Posting-Date: Tue, 21 May 2002 20:37:10 EDT Organization: ATT Broadband Xref: archiver1.google.com comp.lang.ada:24491 Date: 2002-05-22T00:37:10+00:00 List-Id: Someone probably told you that an Ada package is/can be related to a C++ class and they were not entirely wrong however they are not as close as you appear to want them to be. You can not have an array of a package..You are far enough away from a solution here that you really need to read your textbook before starting. "ProLogic" wrote in message news:3ceaafcd@news.comindico.com.au... > I'm trying to create a data structure then a dynamic array to that > structure. > > package Nick is > > NickName: String := ""; > Hops: Integer := 0; > SignOn: Integer := 0; > Identd: String := ""; > Address: String := ""; > Host: String := ""; > Unused: Integer := 0; > Name: String := ""; > > VWAddress: String := ""; > > Modes: String := ""; > > --Channels: array(positive range <>) of String := ""; > > procedure setNickName(NickName: in String); > > end Nick; > > Could someone help me with the comment code there too please? I need a > dynamic array of Strings > > In data.ads I have the following, which doesn't work... > > Nicks: array (positive range <>) of Nick; > > Thanks for your help... > >