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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: about inheritance of subtypes and entities (such as constants) related to a type in the same package Date: Tue, 29 May 2018 17:07:41 -0500 Organization: JSA Research & Innovation Message-ID: References: Injection-Date: Tue, 29 May 2018 22:07:53 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="22199"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:52767 Date: 2018-05-29T17:07:41-05:00 List-Id: Packages are not themselves a runtime "master" (they're just an compile-time organization feature), so a task declared in a package belongs to whatever the package is declared in. In the case of a library package, that's Standard and the environment task. Note that this has nothing to do with what is legal, just who the owner of the task is. Randy. "Mehdi Saada" <00120260a@gmail.com> wrote in message news:f414db5e-0da3-43ad-81eb-7f882a9bea58@googlegroups.com... > Something else entirely but it's said packages can't have dependent > tasks... What ? > The body below is legal, whatever the package: > package body III is > task T1; > task body T1 is > begin > delay 5.2; > end T1; > begin > delay 0.5; > end III; > So what does it mean ?