comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: pointer questions
Date: Sat, 29 Oct 2005 13:25:47 +0100
Date: 2005-10-29T13:25:47+01:00	[thread overview]
Message-ID: <m23bmkbjck.fsf@grendel.local> (raw)
In-Reply-To: 43621147$0$8220$afc38c87@news.optusnet.com.au

David <kdgreen@fastmail.fm.au> writes:

> I develop larg'ish mission-critical systems in Ada and cannot use
> pointers, dynamic memory allocation, tasks, variants, recursion,
> etc. etc.  You can always find a way to not use pointers as long as
> you stick to Ada (not interfacing C/C++).   Memory mapped hardware can
> be accessed using an expression like "for x'address use at <hardware
> address>".  You can declare one variable on top of another the same
> way.
>
> Trying to get code safety-certified with pointers is very difficult
> to impossible.  Code that doesn't use pointers is invariably simpler
> and more reliable but it may require more thought depending upon
> mind-set.

Do the rules allow unchecked conversion?

Using "for x'address use" to "declare one variable on top of another"
is a way of trying to pretend to the auditor that you aren't doing
unchecked conversion ... much safer to do UC, at least the compiler
has a chance to tell you that (for instance) the things concerned
aren't the same size!



  reply	other threads:[~2005-10-29 12:25 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
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 [this message]
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