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,c0d4e990924eb044 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Newbie question -- dereferencing access Followup-To: comp.lang.ada Date: Fri, 13 Mar 2009 12:06:52 +0100 Message-ID: <71ut2oFn4m2pU1@mid.individual.net> References: <72516b38-1711-4588-b53b-7b42773f70c2@w34g2000yqm.googlegroups.com> <1IednThMP8E8sCfUnZ2dnUVZ8suWnZ2d@posted.plusnet> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: individual.net 62A5zRx3yiG4FtgWNicq9gGfVv0I0XH4yhLOWEuo6mTxBSevQ= Cancel-Lock: sha1:Qe/FJSiwjhyPOUxPZlIWkHf+z3s= User-Agent: KNode/0.99.01 Xref: g2news2.google.com comp.lang.ada:5075 Date: 2009-03-13T12:06:52+01:00 List-Id: Tim Rowe wrote: > Ed Falis wrote: >> Try the books on this page: http://www.adaic.org/free/freebook.html >> >> Richard Riehle's "Ada Distilled" may be exactly what you're looking for, >> as it's aimed at experienced programmers. > > Thanks. I am now working through "Ada Distilled". I'm a little nervous > that it says "very little about Ada.Finalization, Storage Pool > Management [...]" -- I hope the "very little" it says is enough for me > to be able to use access types without memory leaks! I suppose I'll find > out when I get there. While these are certainly important skills, one thing you should notice when transitioning to Ada is a decreased need for access types thanks to unconstrained/indefinite types. I'd think that would mean that you're in the right track. It can depend on your particular application domain, of course. Anyway, if you have a sound knowledge of memory management in C/C++, it's pretty much the same. Don't forget to deallocate, wrap it all in a controlled type. Storage pools are quite exotic a need in my experience, specially for a newbie (with the possible exception of Gnat.Debug_Pools, and for that you only need the very basics).