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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,436e4ce138981b82 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-03 03:50:10 PST From: Marius Amado Alves Newsgroups: comp.lang.ada Subject: Re: abstract sub programs overriding Date: Wed, 3 Mar 2004 12:00:30 +0000 Organization: Cuivre, Argent, Or Message-ID: References: <5f59677c.0403021101.4ac263d0@posting.google.com> Reply-To: amado.alves@netcabo.pt NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: melchior.cuivre.fr.eu.org 1078314533 5296 212.85.156.195 (3 Mar 2004 11:48:53 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Wed, 3 Mar 2004 11:48:53 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: User-Agent: KMail/1.4.3 In-Reply-To: <5f59677c.0403021101.4ac263d0@posting.google.com> X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Path: archiver1.google.com!news2.google.com!fu-berlin.de!feed.ac-versailles.fr!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail Xref: archiver1.google.com comp.lang.ada:6028 Date: 2004-03-03T12:00:30+00:00 > type t3 is new t2 with record ... end record; > type access_t3 is access all t3; > function new_t3 return access_t3; > ... > procedure generate is > access_t3 : t3 :=3D new_t3; > begin > proc(access_t3.all); > end; You are dereferencing a non pointer. You are confusing names. Try: procedure Generate is Ptr : Access_T3 :=3D New_T3; begin Proc (Ptr.all); end;