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-22 04:30:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!78d6f1f0!not-for-mail Message-ID: <3CEB819C.CC3AC467@earthlink.net> From: "Marc A. Criley" Organization: Quadrus Corporation X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Data Structures References: <3ceaafcd@news.comindico.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 22 May 2002 11:30:10 GMT NNTP-Posting-Host: 63.191.74.80 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1022067010 63.191.74.80 (Wed, 22 May 2002 04:30:10 PDT) NNTP-Posting-Date: Wed, 22 May 2002 04:30:10 PDT Xref: archiver1.google.com comp.lang.ada:24516 Date: 2002-05-22T11:30:10+00:00 List-Id: Jeffrey Creem wrote: > > 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... > > > > All those strings variables that you initialized to "" aren't going to behave the way you think they're going to behave either. Once you start trying to set them to various values, you're going to start getting Constraint_Errors. Do what the man says: Read the textbook. Marc A. Criley Consultant Quadrus Corporation www.quadruscorp.com