From: alex <xela@netcourrier.com>
Subject: Re: access on function returning a class wide type
Date: 20 Nov 2002 06:39:27 GMT
Date: 2002-11-20T06:39:27+00:00 [thread overview]
Message-ID: <20021120-73927-567742@foorum.com> (raw)
In-Reply-To: FqAC9.22502$hK4.1955169@bgtnsc05-news.ops.worldnet.att.net
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 896 bytes --]
I agree with you and I understood the compiler error. The explanation is exactly
what your are saying : B_T is in the A_T'Class but a function returning B_T does
not return a
class-wide type. You have defined Fa_Ptr to be an access type to a
function returning a class-wide type rooted in type A_T. Also in my example I do
not really need to work with abstract type. In fact what I am intending to do is
not to compile this exact program, but to be able to create a Class (here A_T)
and a pointer on functions which would be �usable/available� for all functions
defined in the hierarchy (i.e. Ptr : A.Fa_Ptr := B.Fa'access). Also, in my
�design issue� I can�t use Class wide type except in package A).
Thanks.
--
Ce message a ete poste via la plateforme Web club-Internet.fr
This message has been posted by the Web platform club-Internet.fr
http://forums.club-internet.fr/
next prev parent reply other threads:[~2002-11-20 6:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-19 21:38 access on function returning a class wide type alex
2002-11-20 0:11 ` James S. Rogers
2002-11-20 6:39 ` alex [this message]
2002-11-20 8:43 ` Jean-Pierre Rosen
2002-11-20 12:39 ` Dmitry A. Kazakov
2002-11-20 15:32 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox