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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c7a5c447f88aecaa X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-22 07:46:36 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news2.POSTED!not-for-mail From: "Clueless" Subject: Re: Pre-Elaboration clarification. Newsgroups: comp.lang.ada References: User-Agent: Pan/0.10.0 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: "Matthew Heaney" Message-ID: Date: Thu, 22 Nov 2001 15:46:35 GMT NNTP-Posting-Host: 24.0.109.49 X-Complaints-To: abuse@home.net X-Trace: news2 1006443995 24.0.109.49 (Thu, 22 Nov 2001 07:46:35 PST) NNTP-Posting-Date: Thu, 22 Nov 2001 07:46:35 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:16871 Date: 2001-11-22T15:46:35+00:00 List-Id: In article , "Matthew Heaney" wrote: > "Clueless" wrote in message > news:YAyF7.232247$K6.111187950@news2... >> In my Ada spec file, I have the declaration... >> >> type Int_Data is array(1..Argument_Count) of Integer; > > Don't do it this way. Just declare an unconstrained array type: > > type Integer_Array is array (Positive range <>) of Integer; > > The spec that declares the Integer_Array type shouldn't depend on > package Command_Line. This is unnecessary coupling between specs. > > I'll be talking about this sort of thing at next year's Ada Europe > conference in Austria. (Assuming the committee accepts my tutorial > proposal.) > > Are there any basic rules of thumb that an "Intermediate" level programmer(as I was declared by my CS teacher) should follow in Ada as regards data types and spec files? I've made a BIG point of avoiding unecessary coupling as you pointed out. As I'm not writing very "large" programs in Ada yet, I havent really run into any problems with Data types and elaboration. Is there anything that I should be practicing regularly, which might be peculiar to Ada95, that would help me avoid problems once I get into developing "larger" pieces of software? McDoobie chris@dont.spam.me