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-Thread: 103376,64ced24a7e89252e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!proxad.net!skynet.be!newspost001!tjb!not-for-mail Date: Fri, 26 Nov 2004 00:24:15 +0100 From: Adrien Plisson Reply-To: aplisson-news@stochastique.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: fr-be, fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Unchecked deallocation question References: <41A4AAFF.5060407@mailinator.com> <4540106.PdnsrBBvo5@linux1.krischik.com> In-Reply-To: <4540106.PdnsrBBvo5@linux1.krischik.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <41a66926$0$25070$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 9c2b4bee.news.skynet.be X-Trace: 1101424934 news.skynet.be 25070 80.201.158.31:17124 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:6490 Date: 2004-11-26T00:24:15+01:00 List-Id: Martin Krischik wrote: > You should carefully thing if you really need it. Unlike C/C++ the following > is actually valid: > > declare > It : Root'Class := Derived'(...); > begin > ... > end; mmmm, i don't think there is any problem doing this in C++: class Root; class Derived : public Root; Root &It = Derived( ... ); it just uses a reference type which is almost the same as ada access type but you cannot assign null to it and cannot dereference it. -- rien