From: Michal Nowak <vinnie@inetia.pl>
Subject: Re: Placement of pragma Import
Date: Mon, 09 Dec 2002 22:56:50 +0100
Date: 2002-12-09T22:56:50+01:00 [thread overview]
Message-ID: <mailman.1039470481.31987.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <4S1J9.145$Z74.617@dfw-service2.ext.raytheon.com>
On 2002-12-09 at 09:34 Wes Groleau wrote:
>> Yes, I agree, that it looks better to put it in private section.
>
>Please, no. The private section is for things you
>don't want client code to access directly (but
>that can't go in the body).
>
>No client code can access the pragma, so the
>only reason to not put it right next to what
>it affects is to avoid clutter. BUT, putting
>things like this and rep-clauses at a distance
>from what they affect invites forgetting to
>update them during maintenance. Or worse,
>being forced to rearrange them due to maintenance
>introducing a "freezing" construct.
>
>I had to re-organize a hundred files for an Ada 95
>port because folks back in the 1980s thought that
>putting rep-specs in the private section was
>"information hiding."
I was thinking about this little snippet of code I posted
when replying, my fault that I was not precise enough.
Yes, you're right that it depends from the construction of
spec where this pragma should be placed. I had also a problem
when some days ago I was doing sort of code review. The requirement
was saying, that specified subprogram should be imported with
intrinsic. The function was, but I saw no pragma. Finally I found
it - two screens below in private section mixed between two
records...
- Michal
"In the world of machines, virtual machines,
dominated by software ...
... a new culture is born"
next prev parent reply other threads:[~2002-12-09 21:56 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-08 10:23 Placement of pragma Import Michal Nowak
2002-12-08 12:26 ` Simon Wright
2002-12-08 15:08 ` Michal Nowak
2002-12-08 18:46 ` Jeffrey Carter
2002-12-08 19:46 ` Dennis Lee Bieber
2002-12-08 21:08 ` James S. Rogers
2002-12-09 1:21 ` Jeffrey Carter
2002-12-09 4:47 ` Dennis Lee Bieber
2002-12-09 21:56 ` Michal Nowak
2002-12-08 22:40 ` Martin Dowie
2002-12-09 1:42 ` Jeffrey Carter
2002-12-09 7:00 ` Martin Dowie
2002-12-10 2:04 ` Randy Brukardt
2002-12-09 21:55 ` Michal Nowak
2002-12-10 1:32 ` Jeffrey Carter
2002-12-09 14:34 ` Wes Groleau
2002-12-09 21:56 ` Michal Nowak [this message]
2002-12-08 18:44 ` Jeffrey Carter
2002-12-09 21:55 ` Michal Nowak
[not found] <200212081123160930.0047D332@smtp-po.inetia.pl>
2002-12-08 11:12 ` David C. Hoos, Sr.
2002-12-08 18:49 ` tmoran
[not found] ` <053001c29eaa$ad9b72f0$6500000a@dhoos>
2002-12-08 15:07 ` Michal Nowak
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox