From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: put of access type
Date: Mon, 31 Aug 2009 20:57:38 -0500
Date: 2009-08-31T20:57:38-05:00 [thread overview]
Message-ID: <h7hv4v$s82$1@munin.nbi.dk> (raw)
In-Reply-To: wccmy5semnv.fsf@shell01.TheWorld.com
"Robert A Duff" <bobduff@shell01.TheWorld.com> wrote in message
news:wccmy5semnv.fsf@shell01.TheWorld.com...
> "Randy Brukardt" <randy@rrsoftware.com> writes:
>
>> "Robert A Duff" <bobduff@shell01.TheWorld.com> wrote in message
>> news:wccr5v5xlza.fsf@shell01.TheWorld.com...
>> ...
>>> I think that still works fine in Ada 95/2005 for pool-specific access
>>> types (which is the only kind that existed in Ada 83). The only
>>> relevant language change is that you can convert from pool-specific to
>>> general. So you have to be able to take your offset, and produce a
>>> "full" address, or whatever a general access type is represented as. As
>>> far as I can see, the addition of user-defined storage pools to the
>>> language is irrelevant here.
>>
>> I don't see how this could work. There is no call-back to the storage
>> pool
>> when converting from pool-specific to general access, so how could the
>> pool
>> make the conversion?
>
> I'm lost. You said Ada 83 compilers can represent access types as
> offsets from some known place. I agree. And I claim Ada 95/2005
> compilers can do the same. Nothing to do with storage pools, which did
> not
> exist in Ada 83.
An Ada 83 compiler can represent *all* access types as offsets from some
known place. That's how our old CP/M compilers worked. But since Ada 95
access types can be converted to general access types (without any sort of
conversion function in the case of access types with a storage pool), it
isn't possible to retain such an implementation in general. I suppose you
could use such an implementation for a specific access type with the use of
a special implementation-defined pragma (and then you would have to disallow
conversions to any other access type, which is not Ada 95), but that is
*not* the sort of implementation model that I was thinking of.
Randy.
next prev parent reply other threads:[~2009-09-01 1:57 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-18 22:26 put of access type Rob Solomon
2009-08-18 23:17 ` Jeffrey R. Carter
2009-08-19 3:36 ` Rob Solomon
2009-08-19 7:44 ` Jean-Pierre Rosen
2009-08-20 8:06 ` Stephen Leake
2009-08-19 11:16 ` Robert A Duff
[not found] ` <k_2dncb9WoxvFRbXnZ2dnUVZ_jmdnZ2d@earthlink.com>
2009-08-20 8:05 ` Stephen Leake
2009-08-20 15:42 ` Adam Beneschan
2009-08-21 8:24 ` Stephen Leake
2009-08-19 6:25 ` Martin Krischik
2009-08-19 7:21 ` Dmitry A. Kazakov
2009-08-19 19:00 ` Rob Solomon
2009-08-19 19:44 ` sjw
2009-08-20 1:54 ` Rob Solomon
2009-08-20 2:06 ` Rob Solomon
2009-08-20 15:18 ` (see below)
2009-08-19 21:01 ` Adam Beneschan
2009-08-19 22:45 ` Randy Brukardt
2009-08-20 6:18 ` Martin Krischik
2009-08-21 0:18 ` Randy Brukardt
2009-08-21 1:20 ` Adam Beneschan
2009-08-21 14:47 ` Robert A Duff
2009-08-21 21:43 ` Randy Brukardt
2009-08-22 0:07 ` Robert A Duff
2009-09-01 1:57 ` Randy Brukardt [this message]
2009-08-20 6:08 ` Martin Krischik
2009-08-20 20:57 ` Robert A Duff
2009-08-20 6:01 ` Martin Krischik
2009-08-20 17:54 ` tmoran
2009-08-31 7:08 ` Martin Krischik
2009-08-20 18:58 ` Dmitry A. Kazakov
2009-08-20 22:27 ` sjw
2009-08-21 7:29 ` Dmitry A. Kazakov
2009-08-21 21:09 ` sjw
2009-08-31 7:12 ` Martin Krischik
2009-08-20 20:29 ` Robert A Duff
2009-08-21 8:18 ` Stephen Leake
2009-08-21 14:31 ` Robert A Duff
2009-08-21 14:41 ` Robert A Duff
2009-08-22 12:02 ` Stephen Leake
2009-08-20 8:09 ` Stephen Leake
[not found] ` <GoydnWoDmpUW4BDXnZ2dnUVZ_rKdnZ2d@earthlink.com>
2009-08-21 8:31 ` Stephen Leake
2009-08-21 8:42 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox