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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4594eef0f00d7b9d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-15 22:36:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail Reply-To: "James S. Rogers" From: "James S. Rogers" Newsgroups: comp.lang.ada References: <6091ca88.0212152035.574130ed@posting.google.com> Subject: Re: Task type inheritance and... X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Mon, 16 Dec 2002 06:36:56 GMT NNTP-Posting-Host: 12.86.36.66 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1040020616 12.86.36.66 (Mon, 16 Dec 2002 06:36:56 GMT) NNTP-Posting-Date: Mon, 16 Dec 2002 06:36:56 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:31873 Date: 2002-12-16T06:36:56+00:00 List-Id: "VNCoder" wrote in message news:6091ca88.0212152035.574130ed@posting.google.com... > Hello all, > Hope someone out there can help me on these questions: > Is it possible to inheritance from a task type? If so, how? > Is is possible to access base class attributes (inside private) > from concrete classes? It is not possible to extend a task type. How would extension work with task entrys? A task entry is NOT a separate subprogram. It is a synchronization point. Inside the task body the entries are accepted, often within a loop. How would this be cleanly extended to add new accept statements? For tagged types a child type can access parent private data members IF the child tagged type is defined within a child package (or the same package) of the package defining the parent tagged type. The child package body has visibility to all public and private data members. The child package private part also has visibility to public and private data members. The child package public part only has visibility to the parent package public part. Jim Rogers