comp.lang.ada
 help / color / mirror / Atom feed
From: "Zane H. Healy" <healyzh@shell1.aracnet.com>
Subject: Re: DEC Ada and packages
Date: 7 Feb 2002 18:19:16 GMT
Date: 2002-02-07T18:19:16+00:00	[thread overview]
Message-ID: <a3ugf40i25@enews2.newsguy.com> (raw)
In-Reply-To: mailman.1013061605.13551.comp.lang.ada@ada.eu.org

Gautier Write-only-address <gautier_niouzes@hotmail.com> wrote:
> Hello!

> In your powers.ada you have the "code" (the body), but
> the "interface" (the specification) for using Powers
> is missing.

> Before "package body...", you may want to add:

> ---
> package Powers is
>         function Square (Arg: Integer) return Integer;
>         function Cube (Arg: Integer) return Integer;
> end Powers;
> ---

> Then it should compile fine.

Thank You!!! That little bit of syntax has been driving me crazy for two
days.  The problem is the one tutorial I'd been looking at showed the two
seperatly, and by the time I thought to try putting it all in the same file
I forgot the 'package Powers is' and 'end Powers;' lines :^(

			Zane



  reply	other threads:[~2002-02-07 18:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-07  5:59 DEC Ada and packages Gautier Write-only-address
2002-02-07 18:19 ` Zane H. Healy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-02-07  4:44 Zane H. Healy
2002-02-07 13:44 ` Charlie McCutcheon
2002-02-07 18:34   ` Zane H. Healy
2002-02-07 20:52     ` Marin David Condic
2002-02-07 21:29   ` Jeffrey Carter
2002-02-15 13:25     ` Charlie McCutcheon
2002-02-15 13:28       ` Ed Falis
2002-02-15 17:33       ` Jeffrey Carter
2002-02-16  1:45     ` Robert Dewar
2002-02-16  2:08       ` 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