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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,611fb023d16b157d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-04 11:48:54 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!128.32.206.55!newsfeed.berkeley.edu!ucberkeley!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Here my package Date: 04 Apr 2001 13:41:37 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <0rGy6.262$A24.137061@carnaval.risq.qc.ca> <3ACB4E79.6A461BC3@boeing.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 986410578 22300 128.183.220.71 (4 Apr 2001 18:56:18 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 4 Apr 2001 18:56:18 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 Xref: supernews.google.com comp.lang.ada:6474 Date: 2001-04-04T18:56:18+00:00 List-Id: "Mich" writes: > The requirement is with the function that i already got is to put everything > in my procedure but i don't know how : that my real problem...i work on that > for about 3 days and i don't know how to... if you could help tahnx I'm not sure I'm following you, but I think you are saying you need a main procedure Date_Valide that contains the package lesdates. No problem: procedure Date_Valide is package lesdates is type date is record ... end lesdates; begin -- Date_Valide stuff that uses functions in lesdates end Date_Valide; In Ada, you can nest package declarations in the declaration part of a procedure. You can also just declare everything in package lesdates directly in the declaration part of the procedure Date_Valide; you don't need a package. -- -- Stephe