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.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,a9a99a861147e2f8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-20 01:30:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!btnet-peer1!btnet!isdnet!isdnethub!foorum!not-for-mail From: alex Newsgroups: comp.lang.ada Subject: Re: access on function returning a class wide type Date: 20 Nov 2002 06:39:27 GMT Organization: perso Message-ID: <20021120-73927-567742@foorum.com> References: <20021119-223832-295143@foorum.com> NNTP-Posting-Host: 213.44.91.57 NNTP-Posting-Date: 20 Nov 2002 06:39:27 GMT X-Complaints-To: abuse@foorum.fr X-POSTER: foorum.com X-Foorum_user_tmp_id: 20021119-223333-705548-213.44.12.241-club-internet X-Originating-User: 213.44.91.57 X-Newsreader: Foorum Xref: archiver1.google.com comp.lang.ada:31125 Date: 2002-11-20T06:39:27+00:00 List-Id: 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/