From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Is it really Ok to assert that the Ada syntax is a context-free grammar ?
Date: Fri, 22 Feb 2008 11:44:37 +0100
Date: 2008-02-22T11:44:38+01:00 [thread overview]
Message-ID: <1720qz4u4x9ya$.17x37gssp6nps.dlg@40tude.net> (raw)
In-Reply-To: u1w7574hb.fsf@stephe-leake.org
On Fri, 22 Feb 2008 03:57:52 -0500, Stephen Leake wrote:
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>
>> On Wed, 20 Feb 2008 02:34:34 -0800 (PST), Ludovic Brenta wrote:
>>
>>> Martin Krischik wrote:
>>>> Jeffrey R. Carter schrieb:
>>>>> X (Y) cannot represent a type cast because Ada does not have anything
>>>>> called "type cast".
>>>>
>>>> Not quite, if you consider "type cast" is a unchecked bit pattern copy -
>>>> so if you define:
>>>
>>> Jeffrey is correct; it is not a "type cast", it is a "type conversion"
>>> and there is no such thing as "Ada.Unchecked_Cast".
>>
>> ARM 13.7.2.
>
> I don't see the phrase "type cast" in that section; what is your
> point?
I thought it was about whether Ada has a thing semantically equivalent to
static type cast of C++, and the (true) point was that Unchecked_Conversion
could not always serve this purpose.
> Jeffrey's point was about the specific phrase "type cast"; that is
> _not_ defined by the Ada language.
Then his wording was unhappy. What X(Y) could represent is not directly
related to what Ada "has" or "calls." For example it can represent a
traffic light, tooth-powder or in fact whatever.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2008-02-22 10:44 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-20 0:47 Is it really Ok to assert that the Ada syntax is a context-free grammar ? Hibou57
2008-02-20 2:06 ` Jeffrey R. Carter
2008-02-20 10:05 ` Martin Krischik
2008-02-20 10:34 ` Ludovic Brenta
2008-02-20 11:13 ` Dmitry A. Kazakov
2008-02-22 8:57 ` Stephen Leake
2008-02-22 10:44 ` Dmitry A. Kazakov [this message]
2008-02-20 14:22 ` Hibou57
2008-02-20 15:19 ` Niklas Holsti
2008-02-20 18:34 ` Hibou57 (Yannick Duchêne)
2008-02-20 19:10 ` Hibou57 (Yannick Duchêne)
2008-02-21 0:39 ` Randy Brukardt
2008-02-21 0:56 ` Hibou57 (Yannick Duchêne)
2008-02-21 22:19 ` Randy Brukardt
2008-02-21 22:19 ` Randy Brukardt
2008-02-21 23:54 ` Hibou57 (Yannick Duchêne)
2008-02-22 19:51 ` Randy Brukardt
2008-02-23 18:13 ` Hibou57 (Yannick Duchêne)
2008-02-20 20:22 ` Niklas Holsti
2008-02-20 21:38 ` Manuel Collado
2008-02-21 0:30 ` Hibou57 (Yannick Duchêne)
2008-02-20 20:51 ` Robert A Duff
2008-02-21 19:24 ` Martin Krischik
2008-02-22 20:17 ` Simon Wright
2008-02-25 21:47 ` Samuel Tardieu
2008-02-23 19:02 ` Maciej Sobczak
2008-02-20 18:27 ` Jeffrey R. Carter
2008-02-21 19:20 ` Martin Krischik
2008-02-21 21:31 ` Jeffrey R. Carter
2008-02-20 5:53 ` Niklas Holsti
2008-02-20 16:43 ` 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