comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Preventing Unchecked_Deallocation?
Date: Thu, 9 Feb 2012 19:12:56 -0600
Date: 2012-02-09T19:12:56-06:00	[thread overview]
Message-ID: <jh1qut$gme$1@munin.nbi.dk> (raw)
In-Reply-To: 4F337215.3050802@obry.net

"Pascal Obry" <pascal@obry.net> wrote in message 
news:4F337215.3050802@obry.net...
> Randy,
>
>> My personal theory is the only reason for an Ada 95 program to use 
>> "access"
>> in a specification is to get the effect of "in out" parameters for
>> functions, and that's finally fixed for Ada 2012. I don't think there 
>> *ever*
>
> You also need access type for the Distributed Annex. And this is still
> needed with Ada 2012 and will probably forever.

Yes and no: you can't alway marshall an access value, and it actually makes 
more sense to marshall the designated object. (But I admit I don't have any 
experience in this area - I've always used sockets - so I'll stop before I 
dig a deeper hole. ;-)

> But we also want to
> distinguish between access type and dynamic allocation. My distributed
> application have access types but no dynamic allocation.

Right, and that's why I said that general access types shouldn't have had 
any allocation at all. It would have been easy enough to do conversions in 
the case that it was needed, and it would prevent the erroneous execution 
problems with deallocation of a general access value. (It only works if it 
is from the "right" pool, and there is no way to guarantee that if 
statically allocated objects also can be used.)

                                     Randy.





  reply	other threads:[~2012-02-10  1:13 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-02 23:41 Preventing Unchecked_Deallocation? Simon Belmont
2012-02-04 14:40 ` AdaMagica
2012-02-05 16:42   ` Simon Belmont
2012-02-06 12:52     ` Julian Leyh
2012-02-06 16:05       ` Adam Beneschan
2012-02-06 16:21     ` Adam Beneschan
2012-02-06 18:34       ` AdaMagica
2012-02-07  0:14       ` Simon Belmont
2012-02-07  2:19         ` Shark8
2012-02-07 16:39           ` Robert A Duff
2012-02-07 11:42         ` Gautier write-only
2012-02-07 21:11           ` Simon Belmont
2012-02-07 21:30             ` Robert A Duff
2012-02-07 22:23               ` Simon Wright
2012-02-07 23:07                 ` Robert A Duff
2012-02-08  8:43                   ` Simon Wright
2012-02-08 15:06                     ` Robert A Duff
2012-02-09  2:22                     ` Randy Brukardt
2012-02-09  7:28                       ` Simon Wright
2012-02-07 23:06               ` Alan Copeland
2012-02-07 23:10                 ` Robert A Duff
2012-02-09  2:49         ` Randy Brukardt
2012-02-09  3:39           ` Jeffrey Carter
2012-02-09 15:47             ` Adam Beneschan
2012-02-09 19:16               ` Jeffrey Carter
2012-02-09  7:37           ` Simon Wright
2012-02-10  1:08             ` Randy Brukardt
2012-02-10  7:35               ` Simon Wright
2012-02-07  6:26     ` Jeffrey Carter
2012-02-08  8:49       ` Maciej Sobczak
2012-02-08 23:40         ` BrianG
2012-02-09  2:57         ` Randy Brukardt
2012-02-09  7:13           ` Pascal Obry
2012-02-10  1:12             ` Randy Brukardt [this message]
2012-02-09  8:08           ` Maciej Sobczak
2012-02-10  1:18             ` Randy Brukardt
2012-02-07 16:27     ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox