From: "Clueless" <chris@dont.spam.me>
Subject: Re: Pre-Elaboration clarification.
Date: Thu, 22 Nov 2001 15:46:35 GMT
Date: 2001-11-22T15:46:35+00:00 [thread overview]
Message-ID: <v59L7.42261$RI2.21722340@news2> (raw)
In-Reply-To: tuomu32t6sb9@corp.supernews.com
In article <tuomu32t6sb9@corp.supernews.com>, "Matthew Heaney"
<mheaney@on2.com> wrote:
> "Clueless" <chris@dont.spam.me> 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
next prev parent reply other threads:[~2001-11-22 15:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-05 15:52 Pre-Elaboration clarification Clueless
2001-11-05 17:49 ` Jeffrey Carter
2001-11-09 22:45 ` Matthew Heaney
2001-11-22 15:46 ` Clueless [this message]
2001-11-28 17:55 ` Matthew Heaney
2001-11-28 18:12 ` WAS " Mark Lundquist
2001-11-28 18:46 ` Mark Lundquist
2001-11-28 20:13 ` Matthew Heaney
2001-11-29 9:34 ` Simon Wright
2001-11-10 6:31 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox