comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Preventing Unchecked_Deallocation?
Date: Mon, 6 Feb 2012 18:19:32 -0800 (PST)
Date: 2012-02-06T18:19:32-08:00	[thread overview]
Message-ID: <645ab281-7fde-40ed-ab24-bc2b42bcda1a@15g2000vbq.googlegroups.com> (raw)
In-Reply-To: 26e4f2a4-edae-4e37-8697-f2390e636a21@z31g2000vbt.googlegroups.com

On Feb 6, 6:14 pm, Simon Belmont <sbelmont...@gmail.com> wrote:
> On Feb 6, 11:21 am, Adam Beneschan <a...@irvine.com> wrote:
>
> It's strange to me that a language of
> such a high level of abstraction when it comes to everything else
> still regards access types with the underlying 'address stored in
> memory' mentality.
>

You know, I remember reading somewhere that Ada chose ACCESS because
it could be implemented as something other than an integer... like a
record (remember the segment:offset pairs on the 286?).

Technically still an "address stored in memory" but far better (IMO)
than the "yeah-its-an-integer" of most other languages.

I seem to also recall a 'trick' for making an access-type "must-
derefrence" by using "FOR ACCESS_TYPE'Size = 0;"

But, in any case, you're probably right that a REFERENCE type (being a
constant,
not null, auto-dereferenced, optionally limited access type) would be
a good addition.



  reply	other threads:[~2012-02-07  2:19 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 [this message]
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
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