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,6689542a60dbcc55 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Discriminated records are not the most efficient, but ... Date: Mon, 23 Aug 2010 09:40:21 +0300 Organization: Tidorum Ltd Message-ID: <8dejelF6qlU1@mid.individual.net> References: <874oemcr37.fsf@mid.deneb.enyo.de> <4c71e5fc$0$2388$4d3efbfe@news.sover.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net teJD7UGqkyZdKQObpBfKBQjzYvBNlZrQS1FxZ3crPLQ8neOwjL Cancel-Lock: sha1:zfXoCw8tc+5Ftm2Pth52k1u+JXs= User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) In-Reply-To: Xref: g2news1.google.com comp.lang.ada:13648 Date: 2010-08-23T09:40:21+03:00 List-Id: Yannick DuchĂȘne (Hibou57) wrote: > Le Mon, 23 Aug 2010 05:06:53 +0200, Peter C. Chapin a > Ă©crit: >> Tasks aren't compilation units because they can't be compiled on their >> own. They must be contained in something else (such as a package or >> subprogram). >> >> Peter > I see the point, but... this is the same for functions and procedures > (except the entry point procedure or function). Subprograms can be compiled on their own, without being enclosed in a package. See, for example, RM 10.1.1(31). (In that example, the subprogram is a child of a package, but that is not essential.) In my applications, such stand-alone subprograms are often generic, and their instantiations occur in a package and use the rich environment that the instantiating package provides. But also non-generic subprograms can be compiled on their own. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .