comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: volatile vs aliased
Date: Thu, 6 Oct 2005 18:56:39 -0500
Date: 2005-10-06T18:56:39-05:00	[thread overview]
Message-ID: <lO-dnaesQOxLJdjeRVn-jQ@megapath.net> (raw)
In-Reply-To: wcchdbufnck.fsf@shell01.TheWorld.com

"Robert A Duff" <bobduff@shell01.TheWorld.com> wrote in message
news:wcchdbufnck.fsf@shell01.TheWorld.com...
> "Jeffrey R. Carter" <spam@spam.com> writes:
>
> > Of course, if the C function has both pointer parameters and returns a
> > value, access parameters are the only thing available. Is ease of
> > interfacing to other languages another pro for allowing out and in out
> > parameters for functions, along with making side effects visible?
>
> Yes!  And that argument was brought up during the Ada 9X design.
> Apparently, it didn't convince people.

It also was one of the reasons for making null exclusions explicit in Ada
200Y. In Ada 95, access parameters exclude null automatically, making them
annoying for interfacing when you *do* need to use access values (such as
when null is a legitimate value - can't do that with "in out"). Using a
named access type is required -- but that can bring in accessibility checks
that are irrelevant. (Which is why I don't think I've ever successfully used
'Access on an object, I always have to change to 'Unchecked_Access.)

                           Randy.






  reply	other threads:[~2005-10-06 23:56 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-05 15:22 volatile vs aliased REH
2005-10-05 18:22 ` Ludovic Brenta
2005-10-05 18:39   ` REH
2005-10-05 19:46     ` Ludovic Brenta
2005-10-05 20:02       ` REH
2005-10-05 20:11         ` Ludovic Brenta
2005-10-05 20:20           ` REH
2005-10-06  5:21             ` Ludovic Brenta
2005-10-05 20:55       ` Simon Wright
2005-10-06 18:32       ` Jeffrey R. Carter
2005-10-05 23:38   ` Randy Brukardt
2005-10-06  0:02     ` tmoran
2005-10-06 13:40     ` REH
2005-10-06 23:52       ` Randy Brukardt
2005-10-06 18:40     ` Jeffrey R. Carter
2005-10-06 19:37       ` Robert A Duff
2005-10-06 23:56         ` Randy Brukardt [this message]
2005-10-06 19:08     ` REH
2005-10-06 19:21       ` Ed Falis
2005-10-06 19:37         ` REH
2005-10-06 19:46       ` Robert A Duff
2005-10-06  8:05   ` Martin Krischik
2005-10-06  8:52     ` Dmitry A. Kazakov
2005-10-06 11:36     ` Rolf
2005-10-06 18:43       ` Björn Persson
2005-10-06 19:03         ` Niklas Holsti
2005-10-07  6:36         ` Martin Krischik
2005-10-07  6:33       ` Martin Krischik
2005-10-07 15:56         ` Adrian Knoth
2005-10-07 18:48           ` Martin Krischik
2005-10-07 22:44           ` REH
2005-10-08  6:10         ` Simon Wright
2005-10-17  2:16         ` 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