comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Help with Copying Shared Memory to Local
Date: Fri, 24 May 2002 19:30:16 GMT
Date: 2002-05-24T19:30:16+00:00	[thread overview]
Message-ID: <3CEE94BA.922A2191@acm.org> (raw)
In-Reply-To: mailman.1022250182.12639.comp.lang.ada@ada.eu.org

"Beard, Frank [Contractor]" wrote:
> 
> Jeffrey Carter wrote:
> 
> > A : Storage_Array (1 .. Storage_Length);
> > for A'Address use Destination;
> > pragma Import (Ada, A);
> >
> > B : Storage_Array (1 .. Storage_Length);
> > for B'Address use Source;
> > pragma Import (Ada, B);
> >
> 
> Just curious.  Why the "pragma Import" on the object?

Pragma Import (Ada, ...); tells the compiler not to initialize the
object. In many cases (including this one, most likely) no
initialization will take place anyway, but pragma Import is the way to
be sure.

-- 
Jeff Carter
"Go and boil your bottoms."
Monty Python & the Holy Grail



  reply	other threads:[~2002-05-24 19:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-24 14:22 Help with Copying Shared Memory to Local Beard, Frank [Contractor]
2002-05-24 19:30 ` Jeffrey Carter [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-05-23 13:50 John Cupak
2002-05-23 20:32 ` Jeffrey Carter
2002-05-23 21:18   ` John Cupak
2002-05-24  1:37     ` Randy Brukardt
2002-05-24  2:08       ` Jeffrey Carter
2002-05-24 17:05         ` John R. Strohm
2002-05-24 16:55           ` Stephen Leake
2002-05-24 20:43             ` John R. Strohm
2002-05-24 19:49               ` Pat Rogers
2002-05-24 23:23                 ` martin.m.dowie
2002-05-24 20:54               ` Stephen Leake
2002-05-24 19:41           ` Jeffrey Carter
2002-05-26  0:55           ` John Cupak
2002-05-28 17:52             ` John Cupak
2002-05-25 11:23   ` Robert Dewar
2002-05-26  4:48     ` Jeffrey Carter
replies disabled

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