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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c50f57c0c29b391b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: memory management Date: Fri, 27 May 2005 16:31:48 +0200 Organization: Cablecom Newsserver Message-ID: <1226363.QsRZW1KHie@linux1.krischik.com> References: <1131064.rs72P29t4t@yahoo.com> NNTP-Posting-Host: 84-73-3-177.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1117206917 30497 84.73.3.177 (27 May 2005 15:15:17 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Fri, 27 May 2005 15:15:17 +0000 (UTC) User-Agent: KNode/0.9.0 Xref: g2news1.google.com comp.lang.ada:11183 Date: 2005-05-27T16:31:48+02:00 List-Id: Robert A Duff wrote: > alex goldman writes: > >> As I understood from reading the Ada tutorial for C/C++ programmers, >> "access" is essentially like C++ smart pointer, > > No, Ada access types are just pointers -- no "smarts". > To make something like smart pointers, you can use > controlled types. No again - any paricular Ada implementation is free to implement access types as they see fit. With GNAT an access may consist of an pointer to the data and a pointer to a dope vector: http://en.wikipedia.org/wiki/Dope_vector Remeber that an Ada compiler may also implement garbage collection. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com