From: "Martin Krischik" <krischik@users.sourceforge.net>
Subject: Re: Limited use for limited with?
Date: Sat, 09 Oct 2010 08:21:39 +0200
Date: 2010-10-09T08:21:39+02:00 [thread overview]
Message-ID: <op.vkapad1oz25lew@macpro-eth1.krischik.com> (raw)
In-Reply-To: i8lncg$rif$1@munin.nbi.dk
Am 08.10.2010, 02:07 Uhr, schrieb Randy Brukardt <randy@rrsoftware.com>:
> "Martin Krischik" <krischik@users.sourceforge.net> wrote in message
> news:op.vj7xjle3z25lew@macpro-eth1.krischik.com...
> ...
>>> Inside Foo_Two, we know that the accessibility level of A is the same
>>> as
>>> the declaration of My_Access_Type,
>>
>> Are you realy sure about that? My_Access_Type is an access *all* and
>> could
>> point to an aliased value on the stack.
>
> He is. If you try to store an access to an aliased value on the stack
> into
> My_Access_Type, you'll get a compile-time error that the accessibility
> fails. (Or, in a few obscure cases, Program_Error will be raised.) The
> rules
> that guarentee this are a constant source of headaches for the ARG and
> implementers, but Ada users don't need to worry about that.
But if you mention Program_Error then the accessibility can not be checked
at compile time in all circumstances. In which case an access all is not
at all better then an anonymous access. Only a plain access will guarantee
that accessibility can be checked statically in all circumstances.
Regards.
Martin
--
Martin Krischik
mailto://krischik@users.sourceforge.net
https://sourceforge.net/users/krischik
next prev parent reply other threads:[~2010-10-09 6:21 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-28 7:37 Limited use for limited with? Maciej Sobczak
2010-09-28 9:04 ` Alex R. Mosteo
2010-09-30 7:24 ` Stephen Leake
2010-09-30 9:21 ` Alex R. Mosteo
2010-09-28 9:18 ` Ludovic Brenta
2010-09-28 12:59 ` Maciej Sobczak
2010-09-28 13:45 ` Dmitry A. Kazakov
2010-09-28 21:57 ` Maciej Sobczak
2010-09-29 6:03 ` Ludovic Brenta
2010-09-29 8:25 ` Maciej Sobczak
2010-09-29 7:51 ` Dmitry A. Kazakov
2010-09-29 8:38 ` Maciej Sobczak
2010-09-29 9:16 ` Dmitry A. Kazakov
2010-09-29 12:22 ` Maciej Sobczak
2010-09-29 13:41 ` Dmitry A. Kazakov
2010-09-29 15:07 ` Georg Bauhaus
2010-09-29 19:22 ` Dmitry A. Kazakov
2010-09-29 20:51 ` Maciej Sobczak
2010-09-29 21:18 ` Dmitry A. Kazakov
2010-10-05 7:35 ` Randy Brukardt
2010-10-08 8:05 ` Maciej Sobczak
2010-10-09 6:29 ` Randy Brukardt
2010-10-05 7:25 ` Randy Brukardt
2010-10-08 8:23 ` Maciej Sobczak
2010-10-09 6:13 ` Randy Brukardt
2010-10-10 14:13 ` Maciej Sobczak
2010-10-11 6:23 ` Randy Brukardt
2010-10-12 19:29 ` Maciej Sobczak
2010-10-12 20:19 ` Dmitry A. Kazakov
2010-10-13 2:09 ` Randy Brukardt
2010-10-13 8:44 ` Georg Bauhaus
2010-10-15 0:59 ` Randy Brukardt
2010-10-13 9:43 ` Maciej Sobczak
2010-09-28 15:15 ` Ludovic Brenta
2010-09-28 22:04 ` Maciej Sobczak
2010-09-28 15:54 ` Robert A Duff
2010-09-30 7:27 ` Stephen Leake
2010-09-30 7:33 ` Ludovic Brenta
2010-09-30 16:03 ` Adam Beneschan
2010-10-07 11:55 ` Stephen Leake
2010-10-07 18:27 ` Martin Krischik
2010-10-07 21:30 ` Adam Beneschan
2010-10-09 6:29 ` Martin Krischik
2010-10-09 18:35 ` Robert A Duff
2010-10-08 0:07 ` Randy Brukardt
2010-10-09 6:21 ` Martin Krischik [this message]
2010-09-28 9:32 ` Vadim Godunko
2010-09-28 11:34 ` stefan-lucks
2010-09-28 13:15 ` stefan-lucks
2010-09-28 16:55 ` Adam Beneschan
2010-09-28 17:31 ` Robert A Duff
2010-09-28 19:24 ` Adam Beneschan
2010-09-28 20:32 ` Vadim Godunko
2010-09-28 21:32 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox