comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Novice Ada Programmer Stumped By Simple Type Declaration!
Date: Fri, 05 Oct 2001 15:27:12 GMT
Date: 2001-10-05T15:27:12+00:00	[thread overview]
Message-ID: <kjkv7.17310$ev2.27402@www.newsranger.com> (raw)
In-Reply-To: 3BBCD596.AF223388@san.rr.com

In article <3BBCD596.AF223388@san.rr.com>, Darren New says...
>
>Ted Dennison wrote:
>> 
>> It looks like you should be calling URI_Pkg.URI_List_Pkg.Append.
>
>Oh! Duh! It's not URI_Pkg.Append. It's URI_Pkg.URI_List_Pkg.Append.

Once I figured out how to deal with routines in generic packages, it did become
obvious. But at first I had no end of trouble with it, so don't feel bad about
it.

>
>Adding "use URI_Pkg.URI_List_Pkg" fixes it.

Right. Once you figure out the exact name of the routine you *should* be
calling, then its (arguably) OK to put in the proper use to get access to it.
The problem people get into with uses is that they use them as a crutch so that
they never have to know or think about where stuff is comming from.

>(Incidentally, this is for the unit-test code for a
>first-one-to-throw-away project, while I'm learning Ada, so the over-use
>of "use" isn't as bad as it might be.)

Even for those, I don't do "use"s. 8-)

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html

No trees were killed in the sending of this message. 
However a large number of electrons were terribly inconvenienced.



  reply	other threads:[~2001-10-05 15:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-04 19:19 Novice Ada Programmer Stumped By Simple Type Declaration! Darren New
2001-10-04 19:50 ` Ted Dennison
2001-10-04 21:33   ` Darren New
2001-10-05 15:27     ` Ted Dennison [this message]
2001-10-06  8:56     ` Simon Wright
2001-10-07 17:07       ` Darren New
2001-10-07 20:50         ` Lutz Donnerhacke
2001-10-05  4:32   ` Robert Dewar
2001-10-05 15:19     ` Ted Dennison
2001-10-05 16:30       ` Darren New
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox