From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Recommendation of safe subset of Ada to use?
Date: Mon, 7 May 2018 19:22:16 -0500
Date: 2018-05-07T19:22:16-05:00 [thread overview]
Message-ID: <pcqqjp$4t1$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: 3d48e916-7ec1-4e01-9a9d-1d8c3c81061f@googlegroups.com
"onox" <denkpadje@gmail.com> wrote in message
news:3d48e916-7ec1-4e01-9a9d-1d8c3c81061f@googlegroups.com...
...
> function Inner (Value : access procedure (P2 : Integer)) return
> Proc_Access is
> begin
> return Value;
> end Inner;
I believe this is outright illegal; the accessibility of an anonymous
access-to-subprogram is "infinite", and the accessibility of Proc_Access is
not, so it is not allowed. There's not supposed to be any legal conversion
to "regular" access-to-subprogram types.
Again, if allowed, report it as a bug.
Randy.
next prev parent reply other threads:[~2018-05-08 0:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-05 21:23 Recommendation of safe subset of Ada to use? joakimds
2018-05-05 21:32 ` gorgelo
2018-05-06 7:43 ` Jeffrey R. Carter
2018-05-06 8:45 ` Niklas Holsti
2018-05-06 8:52 ` gorgelo
2018-05-06 13:15 ` Jere
2018-05-06 13:47 ` Jere
2018-05-06 21:28 ` Brad Moore
2018-05-08 0:19 ` Randy Brukardt
2018-05-08 8:07 ` Simon Wright
2018-05-07 15:54 ` onox
2018-05-08 0:22 ` Randy Brukardt [this message]
2018-05-08 0:06 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox