comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: A hole in Ada type safety
Date: Thu, 12 May 2011 07:40:57 -0700 (PDT)
Date: 2011-05-12T07:40:57-07:00	[thread overview]
Message-ID: <20de6e7b-8b76-4d84-877b-714e794aa7c1@17g2000prr.googlegroups.com> (raw)
In-Reply-To: 6fc0d396-40ca-4f32-8840-8091b94d9ddf@s14g2000vbi.googlegroups.com

On May 11, 10:51 pm, AdaMagica <christ-usch.gr...@t-online.de> wrote:
> Randy has already given the answer.
>
> Let me add a further remark (but note, I'm no language lawyer):
>
> You argue about the return statement. But there is no return statement
> involved in the RM with Unchecked_Conversion, it's just compiler magic
> that is being performed. (Being intrinsic, Unchecked_Conversion need
> not be implemented in Ada. In fact, I think there is no code at all,
> it just takes the bit pattern as is and reinterpretes it.)

I think the poster's argument (inasmuch as I could follow it) was that
although Unchecked_Conversion is implemented via compiler magic, it
has to be defined in such a way that it *could* be written in Ada, and
this would be a problem because you couldn't write a RETURN statement
that would make it work.  Or something like that.  The basic problem
is that there is no such rule (and never has been) that the function
has to be writeable in Ada, despite the poster's assertion that "that
goes back to the origins of Ada and has not change", so the whole
argument is based on a false premise.  The poster tried to make an
argument to prove this premise, but I'm still trying to figure out
what this argument was.  It seems to be based on reading much more
into certain language rules than is written there.

                                   -- Adam



  parent reply	other threads:[~2011-05-12 14:40 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-30  8:41 A hole in Ada type safety Florian Weimer
2011-04-30 11:56 ` Robert A Duff
2011-04-30 15:27   ` Gavino
2011-04-30 16:16   ` Florian Weimer
2011-04-30 23:39     ` Randy Brukardt
2011-05-01 10:26       ` Florian Weimer
2011-05-03  1:40         ` Randy Brukardt
2011-05-03 16:57           ` Robert A Duff
2011-05-07  9:09           ` Florian Weimer
2011-05-07  9:28             ` Dmitry A. Kazakov
2011-05-07  9:57               ` Florian Weimer
2011-05-08  8:08                 ` Dmitry A. Kazakov
2011-05-08  8:46                   ` Florian Weimer
2011-05-08  9:32                     ` Dmitry A. Kazakov
2011-05-08 10:30                       ` Florian Weimer
2011-05-08 20:24                         ` anon
2011-05-08 21:11                           ` Simon Wright
2011-05-10  6:27                             ` anon
2011-05-10 14:39                               ` Adam Beneschan
2011-05-11 20:39                                 ` anon
2011-05-12  0:51                                   ` Randy Brukardt
2011-05-13  0:47                                     ` anon
2011-05-13  0:58                                       ` Adam Beneschan
2011-05-13  5:31                                       ` AdaMagica
2011-05-12  5:51                                   ` AdaMagica
2011-05-12 12:09                                     ` Robert A Duff
2011-05-12 14:40                                     ` Adam Beneschan [this message]
2011-05-14  0:30                                       ` Randy Brukardt
2011-05-09  7:48                         ` Dmitry A. Kazakov
2011-05-09 20:41             ` Randy Brukardt
2011-05-14 23:47     ` anon
replies disabled

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