From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,76769272cb0053f1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!sjc-c01.usenetserver.com!pc02.usenetserver.com!ALLTEL.NET!not-for-mail Date: Fri, 18 Mar 2005 14:13:21 -0600 From: "Marc A. Criley" User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: New to ADA - not a homework References: <1111175242.081069.274410@f14g2000cwb.googlegroups.com> In-Reply-To: <1111175242.081069.274410@f14g2000cwb.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@usenetserver.com Organization: UseNetServer.com X-Trace: 0bd61423b365ea13cf02923579 Xref: g2news1.google.com comp.lang.ada:9610 Date: 2005-03-18T14:13:21-06:00 List-Id: 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