From: Robert A Duff <bobduff@world.std.com>
Subject: Re: Package with initialization only
Date: 1999/07/21
Date: 1999-07-21T00:00:00+00:00 [thread overview]
Message-ID: <wcc4sixn7fq.fsf@world.std.com> (raw)
In-Reply-To: 37961DD6.E56BD3E9@maths.unine.ch
Gautier <gautier.demontmollin@maths.unine.ch> writes:
> A small "aesthetic" problem: I have a package with initialization only;
> thus I must add a dummy procedure to resolve the with/without body
> ambiguity Ada95 doesn't accept.
If you put "pragma Elaborate_Body;" at the beginning of the package
spec, then you're allowed to have a body. In fact, *required* to have a
body.
In Ada 83, some people preferred a dummy incomplete type, instead of a
dummy procedure.
- Bob
--
Change robert to bob to get my real email address. Sorry.
next prev parent reply other threads:[~1999-07-21 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-21 0:00 Package with initialization only Gautier
1999-07-21 0:00 ` Gautier de Montmollin
1999-07-21 0:00 ` Robert A Duff [this message]
1999-07-21 0:00 ` Martin C. Carlisle
1999-07-21 0:00 ` Ted Dennison
1999-07-21 0:00 ` Samuel T. Harris
1999-07-21 0:00 ` David C. Hoos, Sr.
1999-07-22 0:00 ` David Kristola
1999-07-22 0:00 ` Marin David Condic
1999-07-22 0:00 ` laoxhai
1999-07-22 0:00 ` Samuel T. Harris
1999-07-22 0:00 ` Ted Dennison
1999-07-22 0:00 ` Robert I. Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox