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,FREEMAIL_FROM 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!news4.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!news.ecp.fr!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Discriminated records are not the most efficient, but ... Date: Mon, 23 Aug 2010 05:50:00 +0200 Organization: Ada At Home Message-ID: References: <874oemcr37.fsf@mid.deneb.enyo.de> <4c71e5fc$0$2388$4d3efbfe@news.sover.net> NNTP-Posting-Host: qaSBlvV+1zCl6PWY+jYb4w.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.61 (Win32) Xref: g2news1.google.com comp.lang.ada:13643 Date: 2010-08-23T05:50:00+02:00 List-Id: Le Mon, 23 Aug 2010 05:06:53 +0200, Peter C. Chapin a = = =C3=A9crit: > 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). I've just checked deeper: compilation_unit includes subunit, which = includes separates, which can be a separate task_body (follow links = starting at 10.1.1). But, if you follow from compilation_unit to = library_unit_declaration, you cannot reach anything like a task (or a = protected). Detailed: * subunit may be: separate (parent_unit_name) subprogram_body | = package_body | task_body | protected_body * library_unit_declaration may be: subprogram_declaration | = package_declaration | generic_declaration | generic_instantiation * library_unit_body may be: subprogram_body | package_body So task or protected are compilation_unit... only when separate ? So wha= t = makes it not a compilation_unit when not separate ? Unless I am missing something else, this seems strange to me. -- = * 3 lines of concise statements is readable, 10 pages of concise = statements is unreadable ; * 3 lines of verbose statements may looks unuseful, 10 pages of verbose = = statements will never looks too much pedantic