comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Style: always declare subrountines?
Date: Tue, 3 Dec 2002 14:31:49 GMT
Date: 2002-12-03T14:31:49+00:00	[thread overview]
Message-ID: <wccu1hvi36y.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 3DECAD6E.738F1C1B@brighton.ac.uk

John English <je@brighton.ac.uk> writes:

> Lutz Donnerhacke wrote:
> > 
> > My dumb brain suggests, that a privatly declared type can be used elsewhere
> > in the program. If the size of this type depends on an other package, the
> > using package does not notice it and allocates the wrong size. (Yep, dumb.)
> 
> Ah, I would hope that any compiler I use has a dependency manager that
> can cope with this...

Indeed.  Ada compilers are *required* to make sure that such
inconsistencies do not happen.  If you try to link a program where one
file has a 64-bit type, and some other file thinks it's 32 bits, you
will get an error at link time.  Or, better, you use a command like
AdaMagic's "adabuild" or gnat's "gnatmake", which will fix the problem
automatically.

See RM-10.2(27).

- Bob



  reply	other threads:[~2002-12-03 14:31 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-09  6:39 Style: always declare subrountines? Victor Porton
2002-11-09 11:09 ` sk
2002-11-09 12:34 ` Victor Porton
2002-11-09 14:34   ` Jim Rogers
2002-11-09 14:53   ` sk
2002-11-09 15:36 ` Robert A Duff
2002-11-09 16:16 ` Frank J. Lhota
2002-11-09 16:28 ` chris.danx
2002-11-09 18:36 ` Simon Wright
2002-11-12 17:31 ` Stephen Leake
2002-11-18  1:52 ` ;Re: " Richard Riehle
2002-11-28 10:32   ` John English
2002-11-28 12:52     ` Lutz Donnerhacke
2002-12-03 11:15       ` John English
2002-12-03 12:22         ` Lutz Donnerhacke
2002-12-03 13:11           ` John English
2002-12-03 14:31             ` Robert A Duff [this message]
2002-12-03 14:41               ` Lutz Donnerhacke
2002-11-28 17:49     ` Vincent Marciante
2002-12-03 11:09       ` John English
2002-11-28 18:45     ` "private with" proposal Vincent Marciante
2002-11-28 20:12       ` David C. Hoos, Sr.
2002-11-29  4:28         ` Vincent Marciante
2002-12-01  1:00           ` Dale Stanbrough
2002-12-02 18:20       ` Stephen Leake
2002-12-03  5:37         ` Vincent Marciante
2002-12-03 19:24           ` Randy Brukardt
2002-12-04  3:52             ` Vincent Marciante
replies disabled

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