From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: pointer questions
Date: 27 Oct 2005 20:12:00 -0400
Date: 2005-10-27T20:12:00-04:00 [thread overview]
Message-ID: <wccvezia4a7.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: djr9p4$d33$3@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com
Martin Dowie <martin.dowie@btopenworld.com> 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
next prev parent reply other threads:[~2005-10-28 0:12 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-26 23:01 pointer questions Szymon Guz
2005-10-26 23:51 ` Gene
2005-10-26 23:58 ` tmoran
2005-10-27 1:12 ` Stephen Leake
2005-10-27 2:30 ` Steve
2005-10-27 5:56 ` Jeffrey R. Carter
2005-10-27 10:19 ` Szymon Guz
2005-10-27 14:14 ` Robert A Duff
2005-11-07 4:21 ` Dave Thompson
2005-10-27 14:11 ` Robert A Duff
2005-10-27 15:13 ` Marc A. Criley
2005-10-27 18:53 ` Jeffrey R. Carter
2005-10-27 17:29 ` Martin Dowie
2005-10-27 18:28 ` Marc A. Criley
2005-10-27 19:28 ` Martin Dowie
2005-10-28 0:12 ` Robert A Duff [this message]
2005-10-28 11:57 ` Dr. Adrian Wrigley
2005-10-28 21:26 ` Jeffrey R. Carter
2005-10-30 22:26 ` Robert A Duff
2005-10-31 6:21 ` Jeffrey R. Carter
2005-11-02 0:52 ` Dr. Adrian Wrigley
2005-11-02 3:46 ` Jeffrey R. Carter
2005-11-02 11:16 ` Dr. Adrian Wrigley
2005-11-02 13:39 ` Robert A Duff
2005-11-02 15:34 ` Bob Spooner
2005-11-02 18:59 ` Björn Persson
2005-10-27 18:43 ` Jeffrey R. Carter
2005-10-28 0:42 ` Robert A Duff
2005-10-28 5:58 ` Martin Dowie
2005-10-28 21:24 ` Jeffrey R. Carter
2005-10-28 11:53 ` David
2005-10-29 12:25 ` Simon Wright
2005-10-27 17:19 ` Martin Krischik
2005-11-07 4:21 ` Dave Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox