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,7272aa7508a3d83f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: pointer questions Date: 27 Oct 2005 20:12:00 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <19cfb$4361207d$4995001$19541@ALLTEL.NET> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1130458320 5726 192.74.137.71 (28 Oct 2005 00:12:00 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 28 Oct 2005 00:12:00 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:6016 Date: 2005-10-27T20:12:00-04:00 List-Id: Martin Dowie writes: > Marc A. Criley wrote: > > Martin Dowie wrote: > >> Embedded defence apps and I can't remember the last time I needed an > >> access type! > >> > >> There's no need in this sort of app, as you know at compile time what > >> the maximum number of anything your system is required to deal with, > >> so you can always use a lookup table of some sort (even if it has an > >> 'In_Use : Boolean' field/discriminant. > > Now that is exactly the domain where I would expect to not see access > > types, for the reasons you cite (as well as related reasons having to > > do with predictability and the consequences of errors.) > > More error related than predictability I hope! Or is there some > dangerous non-determinism associated with access types I haven't come > across yet?! :-) Not with access types per se, but if you do heap allocation using the default storage pool, it's hard to predict if/when you will run out of memory. But if you use user-defined storage pools, you can make them predictable (and then access types become pretty-much equivalent to your "lookup table of some sort"). - Bob