comp.lang.ada
 help / color / mirror / Atom feed
From: "Marc A. Criley" <mcNOSPAM@mckae.com>
Subject: Re: New to ADA - not a homework
Date: Fri, 18 Mar 2005 14:13:21 -0600
Date: 2005-03-18T14:13:21-06:00	[thread overview]
Message-ID: <bd61$423b365e$499558c$23579@ALLTEL.NET> (raw)
In-Reply-To: <1111175242.081069.274410@f14g2000cwb.googlegroups.com>

mieville@mac.com wrote:
> Now I have another the package agenda is OK but when compiling the
> package body agenda is ... I have this message: "spec of this package
> does not allow a body "
> Any of you knows what it might be?

Since you're new to Ada, I'll just give you the general explanation:

A package body is required only when there's something in the spec that 
needs to be implemented in the body, i.e., a procedure or function.  So 
if your Agenda package consists only of constants/types/variables, and 
has no procedures or functions, then no Agenda package body is needed 
_or_allowed_.  Remove the file containing the package body and all will 
be well.

(Now there are ways to permit a package body to be provided anyways 
under these circumstances if it's warranted by the implementation of the 
application, but we'll just get you going with the basics first :-)

Continue to feel free to ask questions here!

Marc A. Criley
McKae Technologies
www.mckae.com



  parent reply	other threads:[~2005-03-18 20:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-18 19:47 New to ADA - not a homework mieville
2005-03-18 20:06 ` Tapio Kelloniemi
2005-03-18 20:13 ` Marc A. Criley [this message]
2005-03-18 20:25   ` Ed Falis
replies disabled

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