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.8 required=5.0 tests=BAYES_00,FORGED_MSGID_YAHOO autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c50f57c0c29b391b,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!green.octanews.net!news-out.octanews.net!cox.net!news-xfer.cox.net!p01!fed1read03.POSTED!53ab2750!not-for-mail Message-Id: <1131064.rs72P29t4t@yahoo.com> From: alex goldman Subject: memory management Newsgroups: comp.lang.ada MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Date: Wed, 25 May 2005 17:57:18 -0700 NNTP-Posting-Host: 68.107.102.129 X-Complaints-To: abuse@cox.net X-Trace: fed1read03 1117069094 68.107.102.129 (Wed, 25 May 2005 20:58:14 EDT) NNTP-Posting-Date: Wed, 25 May 2005 20:58:14 EDT Organization: Cox Communications Xref: g2news1.google.com comp.lang.ada:11154 Date: 2005-05-25T17:57:18-07:00 List-Id: As I understood from reading the Ada tutorial for C/C++ programmers, "access" is essentially like C++ smart pointer, except that you don't need to do anything to dereference it. How will the following work: Record A contains "access" to record B; record B contains "access" to record A. If I create an instance of one of them with "new", will it be destroyed when "access" to it goes out of scope?