comp.lang.ada
 help / color / mirror / Atom feed
From: "James S. Rogers" <jimmaureenrogers@worldnet.att.net>
Subject: Re: Task type inheritance and...
Date: Mon, 16 Dec 2002 06:36:56 GMT
Date: 2002-12-16T06:36:56+00:00	[thread overview]
Message-ID: <cweL9.64139$hK4.5308784@bgtnsc05-news.ops.worldnet.att.net> (raw)
In-Reply-To: 6091ca88.0212152035.574130ed@posting.google.com

"VNCoder" <astrolove@hotmail.com> 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





      reply	other threads:[~2002-12-16  6:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-16  4:35 Task type inheritance and VNCoder
2002-12-16  6:36 ` James S. Rogers [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox